webdav proxy

This commit is contained in:
微凉
2021-11-29 16:42:46 +08:00
parent 4ff2756572
commit ffdd88ec66
10 changed files with 76 additions and 37 deletions

View File

@ -233,8 +233,7 @@ func (h *Handler) handleGetHeadPost(w http.ResponseWriter, r *http.Request, fs *
}
w.Header().Set("ETag", etag)
log.Debugf("url: %+v", r.URL)
host := r.Host
link, err := fs.Link(host, reqPath)
link, err := fs.Link(r, reqPath)
if err != nil {
return http.StatusInternalServerError, err
}