Skip to content

Commit

Permalink
fix(webdav): return 404 if error happened on handlePropfind
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 5, 2023
1 parent 4fabc27 commit 8bdc67e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/webdav/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
status, err = h.handleUnlock(brw, r)
case "PROPFIND":
status, err = h.handlePropfind(brw, r)
// if there is a error for PROPFIND, we should be as an empty folder to the client
if err != nil {
status = http.StatusNotFound
}
case "PROPPATCH":
status, err = h.handleProppatch(brw, r)
}
Expand Down

0 comments on commit 8bdc67e

Please sign in to comment.