Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpServer.cpp Wed Oct 07 13:00:57 2020 +0200 +++ b/OrthancFramework/Sources/HttpServer/HttpServer.cpp Wed Oct 07 13:19:53 2020 +0200 @@ -969,7 +969,8 @@ else if (method == "DELETE") { - if (bucket->second->DeleteItem(path)) + if (!path.empty() && // Cannot delete the root + bucket->second->DeleteItem(path)) { output.SendStatus(HttpStatus_204_NoContent); }