Merge pull request #26274 from nextcloud/bugfix/noid/make-debugging-easier

Make debugging easier which header is being set
This commit is contained in:
Joas Schilling 2021-03-24 15:24:49 +01:00 committed by GitHub
commit 6e40c2fb52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -211,9 +211,9 @@ class Response {
$config = \OC::$server->get(IConfig::class);
if ($config->getSystemValueBool('debug', false)) {
\OC::$server->get(LoggerInterface::class)->error(
'Setting a custom header on a 204 or 304 is not supported'
);
\OC::$server->get(LoggerInterface::class)->error('Setting custom header on a 204 or 304 is not supported (Header: {header})', [
'header' => $name,
]);
}
}