mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[fix] do not send chunked responses to http1.0 clients
This commit is contained in:
parent
afc4d0931f
commit
8663ac1c43
@ -10,6 +10,12 @@ var passes = exports;
|
||||
|
||||
[ // <--
|
||||
|
||||
function removeChunked(req, res, proxyRes) {
|
||||
if(req.httpVersion === '1.0') {
|
||||
delete proxyRes.headers['transfer-encoding'];
|
||||
}
|
||||
},
|
||||
|
||||
function setConnection(req, res, proxyRes) {
|
||||
if (req.httpVersion === '1.0') {
|
||||
if (req.headers.connection) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user