fix(webdav): return 404 if error happened on handlePropfind
This commit is contained in:
parent
4fabc27366
commit
8bdc67ec3d
@ -71,6 +71,10 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
status, err = h.handleUnlock(brw, r)
|
status, err = h.handleUnlock(brw, r)
|
||||||
case "PROPFIND":
|
case "PROPFIND":
|
||||||
status, err = h.handlePropfind(brw, r)
|
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":
|
case "PROPPATCH":
|
||||||
status, err = h.handleProppatch(brw, r)
|
status, err = h.handleProppatch(brw, r)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user