Skip to content
Permalink
Browse files

[fix] better reading

  • Loading branch information...
yawnt committed Jun 12, 2013
1 parent 405cc45 commit 58acf28073fe3d841f6d3feb89c9bb5accd14b19
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/node-http-proxy/proxy-stream.js
@@ -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

0 comments on commit 58acf28

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