8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca73208 commit 3d2350cCopy full SHA for 3d2350c
lib/http-proxy/passes/ws-incoming.js
@@ -118,7 +118,7 @@ var passes = exports;
118
'HTTP/1.1 101 Switching Protocols'
119
];
120
121
- Object.keys(proxyRes 8630 .headers).map(function(i) {
+ for(var i in proxyRes.headers) {
122
if (util.isArray(proxyRes.headers[i])) {
123
var a = proxyRes.headers[i];
124
var len = a.length;
@@ -129,7 +129,7 @@ var passes = exports;
129
} else {
130
writeHead.push(i + ": " + proxyRes.headers[i]);
131
}
132
- });
+ }
133
134
socket.write(writeHead.join('\r\n') + '\r\n\r\n');
135
proxySocket.pipe(socket).pipe(proxySocket);
0 commit comments