diff --git a/lib/Controller/ExAppProxyController.php b/lib/Controller/ExAppProxyController.php index 56853e41..c27bc740 100644 --- a/lib/Controller/ExAppProxyController.php +++ b/lib/Controller/ExAppProxyController.php @@ -72,6 +72,11 @@ private function createProxyResponse(string $path, IResponse $response, bool $is } } + if (isset($responseHeaders['Transfer-Encoding']) + && str_contains(strtolower($responseHeaders['Transfer-Encoding']), 'chunked')) { + unset($responseHeaders['Transfer-Encoding']); + } + $proxyResponse = new ProxyResponse($response->getStatusCode(), $responseHeaders, $content); if ($cache && !$isHTML && empty($response->getHeader('cache-control')) && $response->getHeader('Content-Type') !== 'application/json'