Mercurial > hg > orthanc
comparison OrthancFramework/Sources/HttpServer/HttpServer.cpp @ 4233:ca2a55a62c81
implementation of DELETE in class WebDavStorage
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 07 Oct 2020 13:19:53 +0200 |
parents | 688435755466 |
children | 6c3721ff284c |
comparison
equal
deleted
inserted
replaced
4232:688435755466 | 4233:ca2a55a62c81 |
---|---|
967 * WebDAV - DELETE | 967 * WebDAV - DELETE |
968 **/ | 968 **/ |
969 | 969 |
970 else if (method == "DELETE") | 970 else if (method == "DELETE") |
971 { | 971 { |
972 if (bucket->second->DeleteItem(path)) | 972 if (!path.empty() && // Cannot delete the root |
973 bucket->second->DeleteItem(path)) | |
973 { | 974 { |
974 output.SendStatus(HttpStatus_204_NoContent); | 975 output.SendStatus(HttpStatus_204_NoContent); |
975 } | 976 } |
976 else | 977 else |
977 { | 978 { |