Skip to content

Commit

Permalink
[fix] closes #555
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Jan 19, 2014
1 parent 68c5512 commit e936d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/web-incoming.js
Expand Up @@ -108,7 +108,7 @@ web_o = Object.keys(web_o).map(function(pass) {
proxyReq.on('error', function(err){
if(options.buffer) { options.buffer.destroy(); }
if (clb) {
clb(err);
clb(err, req, res);
} else {
server.emit('error', err, req, res);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/ws-incoming.js
Expand Up @@ -108,7 +108,7 @@ var passes = exports;

function onError(err) {
if (clb) {
clb(err);
clb(err, req, socket);
} else {
server.emit('error', err, req, socket);
}
Expand Down

0 comments on commit e936d18

Please sign in to comment.