mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] better reading
This commit is contained in:
parent
405cc454c8
commit
58acf28073
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user