[fix] do not send chunked responses to http1.0 clients

This commit is contained in:
yawnt 2013-09-17 16:28:54 +02:00
parent afc4d0931f
commit 8663ac1c43

View File

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