From 8663ac1c43505f0081d906c3cd8e702d4b5ddeb0 Mon Sep 17 00:00:00 2001 From: yawnt Date: Tue, 17 Sep 2013 16:28:54 +0200 Subject: [PATCH] [fix] do not send chunked responses to http1.0 clients --- lib/caronte/passes/web-outgoing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/caronte/passes/web-outgoing.js b/lib/caronte/passes/web-outgoing.js index 7d4ff94..48ff12d 100644 --- a/lib/caronte/passes/web-outgoing.js +++ b/lib/caronte/passes/web-outgoing.js @@ -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) {