From db77eab6776e5edfe3c6b50c1895f85f0aa5b27a Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 8 Apr 2024 16:08:44 +0200 Subject: [PATCH] fix(AppFramework): Fix error message about 204 not allowing custom headers Signed-off-by: provokateurin --- lib/public/AppFramework/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/public/AppFramework/Http/Response.php b/lib/public/AppFramework/Http/Response.php index 06541df2da2f3..9e218384954ba 100644 --- a/lib/public/AppFramework/Http/Response.php +++ b/lib/public/AppFramework/Http/Response.php @@ -211,7 +211,7 @@ public function addHeader($name, $value) { $config = \OC::$server->get(IConfig::class); if ($config->getSystemValueBool('debug', false)) { - \OC::$server->get(LoggerInterface::class)->error('Setting custom header on a 204 or 304 is not supported (Header: {header})', [ + \OC::$server->get(LoggerInterface::class)->error('Setting custom header on a 304 is not supported (Header: {header})', [ 'header' => $name, ]); }