Skip to content

Commit

Permalink
Merge pull request oauthjs#101 from thomasdashney/master
Browse files Browse the repository at this point in the history
changed error handler res.send to fix express deprecation warnings
  • Loading branch information
thomseddon committed Jan 2, 2015
2 parents 0050abf + ca81e2c commit 2e83943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2server.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ OAuth2Server.prototype.errorHandler = function () {
if (err.headers) res.set(err.headers);
delete err.headers;

res.send(err.code, err);
res.status(err.code).send(err);
};
};

Expand Down

0 comments on commit 2e83943

Please sign in to comment.