Merge pull request #26274 from nextcloud/bugfix/noid/make-debugging-easier
Make debugging easier which header is being set
This commit is contained in:
commit
6e40c2fb52
|
@ -211,9 +211,9 @@ class Response {
|
||||||
$config = \OC::$server->get(IConfig::class);
|
$config = \OC::$server->get(IConfig::class);
|
||||||
|
|
||||||
if ($config->getSystemValueBool('debug', false)) {
|
if ($config->getSystemValueBool('debug', false)) {
|
||||||
\OC::$server->get(LoggerInterface::class)->error(
|
\OC::$server->get(LoggerInterface::class)->error('Setting custom header on a 204 or 304 is not supported (Header: {header})', [
|
||||||
'Setting a custom header on a 204 or 304 is not supported'
|
'header' => $name,
|
||||||
);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue