Skip to content

Commit

Permalink
fix(TestAgent): attach cookies to agent after plugin is used
Browse files Browse the repository at this point in the history
following superagent:
    PR: ladjs/superagent#1556
commit: ladjs/superagent@4babc5d
  • Loading branch information
lamweili committed Sep 20, 2022
1 parent 5543d67 commit 6d9b9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.js
Expand Up @@ -55,8 +55,8 @@ methods.forEach(function(method) {
req.on('response', this._saveCookies.bind(this));
req.on('redirect', this._saveCookies.bind(this));
req.on('redirect', this._attachCookies.bind(this, req));
this._attachCookies(req);
this._setDefaults(req);
this._attachCookies(req);

return req;
};
Expand Down

0 comments on commit 6d9b9cb

Please sign in to comment.