Skip to content

Commit

Permalink
Call this._setDefaults in TestAgent http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzywalsh committed Jan 19, 2019
1 parent 8ef3840 commit 713ddf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/agent.js
Expand Up @@ -58,6 +58,7 @@ methods.forEach(function(method) {
req.on('redirect', this._saveCookies.bind(this));
req.on('redirect', this._attachCookies.bind(this, req));
this._attachCookies(req);
this._setDefaults(req);

return req;
};
Expand Down

1 comment on commit 713ddf1

@Yondkami
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Please sign in to comment.