Skip to content

Commit 9752652

Browse files
author
Laurent Brucher
committed
fixes after PR review
1 parent a05fc2d commit 9752652

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/http-proxy/passes/ws-incoming.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var passes = exports;
8989
);
9090

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

9494
// Error Handler
9595
proxyReq.on('error', onOutgoingError);

test/lib-http-proxy-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ describe('lib/http-proxy.js', function() {
456456
ws: true
457457
});
458458

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

0 commit comments

Comments
 (0)