Skip to content

Commit

Permalink
Upgrade superagent to 2.x (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
saintedlama authored and mikelax committed Jul 29, 2016
1 parent 7d35f22 commit 7ca0574
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/agent.js
Expand Up @@ -42,10 +42,10 @@ methods.forEach(function(method) {
var req = new Test(this.app, method.toUpperCase(), url);
req.ca(this._ca);

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);
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);

return req;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"test": "eslint lib/**/*.js test/**/*.js && mocha --require should --reporter spec --check-leaks"
},
"dependencies": {
"superagent": "^1.7.2",
"superagent": "^2.0.0",
"methods": "1.x"
},
"devDependencies": {
Expand Down

0 comments on commit 7ca0574

Please sign in to comment.