Skip to content

Commit 4babc5d

Browse files
authored
fix: attach cookies to agent after plugin is used (#1556)
1 parent 5d729bb commit 4babc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ methods.forEach(name => {
9494
req.on('response', this._saveCookies.bind(this));
9595
req.on('redirect', this._saveCookies.bind(this));
9696
req.on('redirect', this._attachCookies.bind(this, req));
97-
this._attachCookies(req);
9897
this._setDefaults(req);
98+
this._attachCookies(req);
9999

100100
if (fn) {
101101
req.end(fn);

0 commit comments

Comments
 (0)