From edbd24c3270dee199226324817a1c65c319a7659 Mon Sep 17 00:00:00 2001 From: franck34 Date: Sat, 28 Mar 2020 12:48:42 +0100 Subject: [PATCH] fix https://github.com/alibaba/anyproxy/pull/553 --- lib/requestHandler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/requestHandler.js b/lib/requestHandler.js index 9aec7c219..df3c61ee9 100644 --- a/lib/requestHandler.js +++ b/lib/requestHandler.js @@ -198,6 +198,7 @@ function fetchRemoteResponse(protocol, options, reqData, config) { }); }); + proxyReq.useChunkedEncodingByDefault = true; proxyReq.on('error', reject); proxyReq.end(reqData); });