mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix(FilesDropPlugin): Also modify Destination header for PUT requests to satisfy the QuotaPlugin
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
1a51e15c3d
commit
d332ab60d3
1 changed files with 2 additions and 2 deletions
|
|
@ -69,8 +69,8 @@ class FilesDropPlugin extends ServerPlugin {
|
|||
public function beforeMethod(RequestInterface $request, ResponseInterface $response) {
|
||||
$isChunkedUpload = $this->isChunkedUpload($request);
|
||||
|
||||
// For the final MOVE request of a chunked upload it is necessary to modify the Destination header.
|
||||
if ($isChunkedUpload && $request->getMethod() !== 'MOVE') {
|
||||
// For the PUT and MOVE requests of a chunked upload it is necessary to modify the Destination header.
|
||||
if ($isChunkedUpload && $request->getMethod() !== 'MOVE' && $request->getMethod() !== 'PUT') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue