From: Robin Appelman Date: Sun, 4 Jul 2010 14:01:31 +0000 (+0200) Subject: fix wrong header sent as response when overwriting files in webdav X-Git-Tag: v3.0~358 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=baf7e00a943afbbb62f374b63d9d4280a5aa22d1;p=nextcloud-server.git fix wrong header sent as response when overwriting files in webdav --- diff --git a/inc/HTTP/WebDAV/Server/Filesystem.php b/inc/HTTP/WebDAV/Server/Filesystem.php index 6c8382b4467..11e7630d797 100755 --- a/inc/HTTP/WebDAV/Server/Filesystem.php +++ b/inc/HTTP/WebDAV/Server/Filesystem.php @@ -493,8 +493,6 @@ $stat = $this->DELETE(array("path" => $options["dest"])); if (($stat{0} != "2") && (substr($stat, 0, 3) != "404")) { return $stat; - }else{ - $new=true; } } else { return "412 precondition failed"; @@ -553,10 +551,7 @@ } } } - - $query = "INSERT INTO properties SELECT * FROM properties WHERE path = '".$options['path']."'"; } - return ($new && !$existing_col) ? "201 Created" : "204 No Content"; }