diff options
author | Anna Larch <anna@nextcloud.com> | 2023-02-07 15:55:55 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-02-17 19:18:37 +0100 |
commit | 5d4efb4d5fd8e4389856df5d94c3b92c7019e603 (patch) | |
tree | be191327ae1ad02a9db395dbf22c03a085b053ed /apps/dav/lib/Connector/Sabre/LockPlugin.php | |
parent | d6a3ebc79f405f5294803ce04386832e526e447b (diff) | |
download | nextcloud-server-5d4efb4d5fd8e4389856df5d94c3b92c7019e603.tar.gz nextcloud-server-5d4efb4d5fd8e4389856df5d94c3b92c7019e603.zip |
Do not set up filesystem on every call
Also remove old Oc_FileChunking logis that produced GC- collectable chunks
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/LockPlugin.php')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/LockPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/LockPlugin.php b/apps/dav/lib/Connector/Sabre/LockPlugin.php index 6305b0ec138..1f3c5211986 100644 --- a/apps/dav/lib/Connector/Sabre/LockPlugin.php +++ b/apps/dav/lib/Connector/Sabre/LockPlugin.php @@ -61,7 +61,7 @@ class LockPlugin extends ServerPlugin { public function getLock(RequestInterface $request) { // we can't listen on 'beforeMethod:PUT' due to order of operations with setting up the tree // so instead we limit ourselves to the PUT method manually - if ($request->getMethod() !== 'PUT' || isset($_SERVER['HTTP_OC_CHUNKED'])) { + if ($request->getMethod() !== 'PUT') { return; } try { @@ -84,7 +84,7 @@ class LockPlugin extends ServerPlugin { if ($this->isLocked === false) { return; } - if ($request->getMethod() !== 'PUT' || isset($_SERVER['HTTP_OC_CHUNKED'])) { + if ($request->getMethod() !== 'PUT') { return; } try { |