Permalink
Browse files

Fix connection keep-alive header

  • Loading branch information...
1 parent 81f6095 commit a09477301cf6d007a00d94fa5f2f55e7f81b8021 @gilad61 committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/node-http-proxy/http-proxy.js
@@ -224,7 +224,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
//
// Process the `reverseProxy` `response` when it's received.
//
- if (response.headers.connection) {
+ if (!response.headers.connection) {
if (req.headers.connection) { response.headers.connection = req.headers.connection }
else { response.headers.connection = 'close' }
}

0 comments on commit a094773

Please sign in to comment.