diff --git a/src/Response.php b/src/Response.php index eccdb26..b498d98 100755 --- a/src/Response.php +++ b/src/Response.php @@ -542,6 +542,7 @@ public function send(string $body = ''): void if ($algorithm) { $body = $algorithm->compress($body); + $this->addHeader('Content-Length', (string) \strlen($body)); $this->addHeader('Content-Encoding', $algorithm->getContentEncoding()); $this->addHeader('X-Utopia-Compression', 'true'); $this->addHeader('Vary', 'Accept-Encoding');