Skip to content

Commit 9025443

Browse files
fix proxy headers filtering
1 parent 651a4dd commit 9025443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ Proxy.prototype._onHttpServerRequest = function(isSSL, clientToProxyRequest, pro
664664
var headers = {};
665665
for (var h in ctx.clientToProxyRequest.headers) {
666666
// don't forward proxy- headers
667-
if (/^proxy\-/i.test(h)) {
667+
if (!/^proxy\-/i.test(h)) {
668668
headers[h] = ctx.clientToProxyRequest.headers[h];
669669
}
670670
}

0 commit comments

Comments
 (0)