Skip to content

Commit 6d9b9cb

Browse files
committedSep 20, 2022
fix(TestAgent): attach cookies to agent after plugin is used
following superagent: PR: ladjs/superagent#1556 commit: ladjs/superagent@4babc5d
1 parent 5543d67 commit 6d9b9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ methods.forEach(function(method) {
5555
req.on('response', this._saveCookies.bind(this));
5656
req.on('redirect', this._saveCookies.bind(this));
5757
req.on('redirect', this._attachCookies.bind(this, req));
58-
this._attachCookies(req);
5958
this._setDefaults(req);
59+
this._attachCookies(req);
6060

6161
return req;
6262
};

0 commit comments

Comments
 (0)
Please sign in to comment.