Skip to content
Permalink
Browse files

[fix] typo

  • Loading branch information...
yawnt committed Jun 12, 2013
1 parent 5b570e1 commit adb67631947d8ef303808e8ef1758da096d57eae
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/node-http-proxy/proxy-stream.js
@@ -86,7 +86,11 @@ ProxyStream.prototype.start = function (req) {
//
// Process the `pReq` `pRes` when it's received.
//
pRes.headers.connection = req.headers.connection || req.httpVersion === '1.0' ? 'close' : 'keep-alive';
if (req.httpVersion === '1.0') {
pRes.headers.connection = req.headers.connection || 'close';
} else if (!pRes.headers.connection) {
pRes.headers.connection = req.headers.connection || 'keep-alive';
}

// Remove `Transfer-Encoding` header if client's protocol is HTTP/1.0
// or if this is a DELETE request with no content-length header.

0 comments on commit adb6763

Please sign in to comment.
You can’t perform that action at this time.