Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Aug 3, 2024
1 parent 9789b3a commit ec9a3e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/webdav/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
"github.com/alist-org/alist/v3/pkg/utils"
"github.com/alist-org/alist/v3/server/common"
log "github.com/sirupsen/logrus"

pkgerr "github.com/pkg/errors"
)

type Handler struct {
Expand Down Expand Up @@ -632,9 +634,16 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) (status
}
fi, err := fs.Get(ctx, reqPath, &fs.GetArgs{})
if err != nil {
fmt.Println("======================")
fmt.Println(err)
fmt.Println("======================")
fmt.Println(pkgerr.Cause(err))
fmt.Println("======================")
if errs.IsNotFoundError(err) {
fmt.Println("进入")
return http.StatusNotFound, err
}
fmt.Println("进入")
return http.StatusMethodNotAllowed, err
}
depth := infiniteDepth
Expand Down

0 comments on commit ec9a3e6

Please sign in to comment.