Skip to content

Commit

Permalink
fix: attach cookies to agent after plugin is used (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Jun 28, 2020
1 parent 5d729bb commit 4babc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ methods.forEach(name => {
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);

if (fn) {
req.end(fn);
Expand Down

0 comments on commit 4babc5d

Please sign in to comment.