[fix] better reading

This commit is contained in:
yawnt 2013-06-12 18:53:36 +02:00
parent 405cc454c8
commit 58acf28073

View File

@ -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