diff --git a/codebird-cors-proxy.php b/codebird-cors-proxy.php index fe985cb..478d6dc 100644 --- a/codebird-cors-proxy.php +++ b/codebird-cors-proxy.php @@ -259,7 +259,9 @@ function http_get_request_body() $reply_headers = explode("\r\n", $reply[0]); foreach($reply_headers as $reply_header) { - header($reply_header); + if (strpos($reply_header, 'transfer-encoding') === false) { + header($reply_header); + } } if (isset($reply[1])) { $reply = $reply[1];