fix wrong header sent as response when overwriting files in webdav
This commit is contained in:
parent
0d299885be
commit
baf7e00a94
1 changed files with 0 additions and 5 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue