mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #59344 from nextcloud/fix/dav-plugin
fix(dav): `AddExtraHeadersPlugin` should not be handled on error
This commit is contained in:
commit
d28bfb484b
1 changed files with 5 additions and 0 deletions
|
|
@ -40,6 +40,11 @@ class AddExtraHeadersPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
return;
|
||||
}
|
||||
|
||||
// skip setting the headers if the PUT request failed
|
||||
if ($response->getStatus() >= 400) {
|
||||
return;
|
||||
}
|
||||
|
||||
$node = null;
|
||||
try {
|
||||
$node = $this->server->tree->getNodeForPath($request->getPath());
|
||||
|
|
|
|||
Loading…
Reference in a new issue