Merge pull request #44729 from nextcloud/backport/44726/stable29

[stable29] fix(AppFramework): Fix error message about 204 not allowing custom headers
This commit is contained in:
Joas Schilling 2024-04-08 18:48:12 +02:00 committed by GitHub
commit 0d63b6025a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,7 @@ class Response {
$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,
]);
}