Skip to content

Commit

Permalink
[fix] naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Sep 14, 2013
1 parent 6a03e5f commit 7d71a86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/caronte/passes/ws.js
Expand Up @@ -72,11 +72,11 @@ function XHeaders(req, socket, options) {
*
*/
function stream(req, socket, options, head) {
var r = http.request(
var proxyReq = http.request(
common.setupOutgoing(options.ssl || {}, options, req)
);

r.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
proxyReq.on('upgrade', function(proxyRes, proxySocket, proxyHead) {
if (proxyHead && proxyHead.length) proxySocket.unshift(proxyHead);

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

r.end();
proxyReq.end();
}

] // <--
Expand Down

0 comments on commit 7d71a86

Please sign in to comment.