Skip to content

Commit

Permalink
fixes after PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Brucher committed Oct 22, 2015
1 parent a05fc2d commit 9752652
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/ws-incoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var passes = exports;
);

// Enable developers to modify the proxyReq before headers are sent
if(server) { server.emit('proxyReqWs', proxyReq, req, socket, options, head); }
if (server) { server.emit('proxyReqWs', proxyReq, req, socket, options, head); }

// Error Handler
proxyReq.on('error', onOutgoingError);
Expand Down
2 changes: 1 addition & 1 deletion test/lib-http-proxy-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ describe('lib/http-proxy.js', function() {
ws: true
});

proxy.on('proxyReqWs', function(proxyReq, req, res, options) {
proxy.on('proxyReqWs', function(proxyReq, req, socket, options, head) {
proxyReq.setHeader('X-Special-Proxy-Header', 'foobar');
});

Expand Down

0 comments on commit 9752652

Please sign in to comment.