Skip to content

Commit

Permalink
[fix] better reading
Browse files Browse the repository at this point in the history
  • Loading branch information
yawnt committed Jun 12, 2013
1 parent 405cc45 commit 58acf28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/node-http-proxy/proxy-stream.js
Expand Up @@ -86,9 +86,8 @@ ProxyStream.prototype.start = function (req) {
//
// Process the `pReq` `pRes` when it's received.
//
(req.httpVersion === '1.0' || !pRes.headers.connection)
&& pRes.headers.connection = req.headers.connection
|| (req.httpVersion === '1.0' ? 'close' : 'keep-alive');
(req.httpVersion === '1.0' || !pRes.headers.connection) &&
pRes.headers.connection = req.headers.connection || (req.httpVersion === '1.0' ? 'close' : 'keep-alive');


// Remove `Transfer-Encoding` header if client's protocol is HTTP/1.0
Expand Down

0 comments on commit 58acf28

Please sign in to comment.