Skip to content

Commit 8663ac1

Browse files
committed
[fix] do not send chunked responses to http1.0 clients
1 parent afc4d09 commit 8663ac1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/caronte/passes/web-outgoing.js

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ var passes = exports;
1010

1111
[ // <--
1212

13+
function removeChunked(req, res, proxyRes) {
14+
if(req.httpVersion === '1.0') {
15+
delete proxyRes.headers['transfer-encoding'];
16+
}
17+
},
18+
1319
function setConnection(req, res, proxyRes) {
1420
if (req.httpVersion === '1.0') {
1521
if (req.headers.connection) {

0 commit comments

Comments
 (0)