Skip to content

Commit

Permalink
feat: add header
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Nov 8, 2024
1 parent 0c26c3e commit 9e2b284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@ public function send(string $body = ''): void

$serverHeader = $this->headers['Server'] ?? 'Utopia/Http';
$this->addHeader('Server', $serverHeader);
$this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime));

$this->appendCookies();

Expand All @@ -542,10 +541,12 @@ public function send(string $body = ''): void
if ($algorithm) {
$body = $algorithm->compress($body);
$this->addHeader('Content-Encoding', $algorithm->getContentEncoding());
$this->addHeader('X-Utopia-Compression', '1');
$this->addHeader('Vary', 'Accept-Encoding');
}
}

$this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime));
$this->appendHeaders();

// Send response
Expand Down

0 comments on commit 9e2b284

Please sign in to comment.