docs: cleanup comments

This commit is contained in:
Henrique Dias
2025-02-12 07:42:15 +01:00
parent 3cfaa0da3e
commit b8644de7be
+1 -1
View File
@@ -150,7 +150,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// message body, the semantics of HEAD are unmodified when applied to
// collection resources.
//
// Get, when applied to collection, will return the same as PROPFIND method.
// GET (or HEAD), when applied to collection, will return the same as PROPFIND method.
if (r.Method == "GET" || r.Method == "HEAD") && strings.HasPrefix(r.URL.Path, user.Prefix) {
info, err := user.FileSystem.Stat(r.Context(), strings.TrimPrefix(r.URL.Path, user.Prefix))
if err == nil && info.IsDir() {