mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
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)
|
||||
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user