From b04afbcf377a4227d5ab347d30de2e5d96caf2aa Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 13 Apr 2026 03:53:54 +0000 Subject: [PATCH] fix: Remove unsupported override parameter from addHeader call The addHeader() method in utopia-php/http does not accept an override parameter. Use removeHeader() + addHeader() instead to ensure X-Debug-Speed is replaced on each chunk() call. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Appwrite/Utopia/Response.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Response.php b/src/Appwrite/Utopia/Response.php index 08f2c12441..30a1b8dbec 100644 --- a/src/Appwrite/Utopia/Response.php +++ b/src/Appwrite/Utopia/Response.php @@ -340,7 +340,8 @@ class Response extends SwooleResponse $this->sent = true; } - $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime), override: true); + $this->removeHeader('X-Debug-Speed'); + $this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime)); if (!$this->chunking) { $this->chunking = true;