Skip to content

Commit

Permalink
[api] also emit the target on a proxy error
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Jul 8, 2014
1 parent e50846b commit d1baa36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http-proxy/passes/web-incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ web_o = Object.keys(web_o).map(function(pass) {

function proxyError (err){
if (clb) {
clb(err, req, res);
clb(err, req, res, options.target);
} else {
server.emit('error', err, req, res);
server.emit('error', err, req, res, options.target);
}
}

Expand Down

0 comments on commit d1baa36

Please sign in to comment.