mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
content size checks are not valid for LOCK
This commit is contained in:
parent
1d639161b6
commit
27cd30aa94
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements \Sabre\
|
|||
// if content length is sent by client:
|
||||
// double check if the file was fully received
|
||||
// compare expected and actual size
|
||||
if (isset($_SERVER['CONTENT_LENGTH'])) {
|
||||
if (isset($_SERVER['CONTENT_LENGTH']) && $_SERVER['REQUEST_METHOD'] !== 'LOCK') {
|
||||
$expected = $_SERVER['CONTENT_LENGTH'];
|
||||
$actual = $this->fileView->filesize($partFilePath);
|
||||
if ($actual != $expected) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue