comparison OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4252:f047e2734655

fix webdav
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 15 Oct 2020 17:13:35 +0200
parents 6c3721ff284c
children 0ae2ca210077
comparison
equal deleted inserted replaced
4250:cbf9afa17415 4252:f047e2734655
961 * WebDAV - DELETE 961 * WebDAV - DELETE
962 **/ 962 **/
963 963
964 else if (method == "DELETE") 964 else if (method == "DELETE")
965 { 965 {
966 if (!path.empty() && // Cannot delete the root 966 if (bucket->second->DeleteItem(path))
967 bucket->second->DeleteItem(path))
968 { 967 {
969 output.SendStatus(HttpStatus_204_NoContent); 968 output.SendStatus(HttpStatus_204_NoContent);
970 } 969 }
971 else 970 else
972 { 971 {