Skip to content

Commit 7d71a86

Browse files
committed
[fix] naming convention
1 parent 6a03e5f commit 7d71a86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/caronte/passes/ws.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ function XHeaders(req, socket, options) {
7272
*
7373
*/
7474
function stream(req, socket, options, head) {
75-
var r = http.request(
75+
var proxyReq = http.request(
7676
common.setupOutgoing(options.ssl || {}, options, req)
7777
);
7878

79-
r.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
79+
proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
8080
if (proxyHead && proxyHead.length) proxySocket.unshift(proxyHead);
8181

8282
socket.write('HTTP/1.1 101 Switching Protocols\r\n');
@@ -86,7 +86,7 @@ function stream(req, socket, options, head) {
8686
proxySocket.pipe(socket).pipe(proxySocket);
8787
});
8888

89-
r.end();
89+
proxyReq.end();
9090
}
9191

9292
] // <--

0 commit comments

Comments
 (0)