Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: attach cookies to agent after plugin is used #1556

Merged
merged 1 commit into from
Jun 28, 2020
Merged

fix: attach cookies to agent after plugin is used #1556

merged 1 commit into from
Jun 28, 2020

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Apr 11, 2020

This fixes the issue whereby if request.url is modified in a plugin for an agent (eg. superagent-prefix), cookies are not preserved across different requests, using that agent (see issue #1164).

This is fixed by simply executing agent._attachCookies() after agent._setDefaults().

Note: this is my first pull request ever.

@niftylettuce niftylettuce merged commit 4babc5d into ladjs:master Jun 28, 2020
@niftylettuce
Copy link
Collaborator

v5.3.0 published to npm and GitHub releases page with changelog

This was referenced Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants