Skip to content
Snippets Groups Projects
Commit 11455295 authored by Raghu Nayyar's avatar Raghu Nayyar
Browse files

Merge pull request #11041 from owncloud/no-size-check-on-lock-master

content size checks are not valid for LOCK
parents d48b6727 27cd30aa
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment