From f61b7cab3bd92a271868e5c90bddf1373ffcb6a4 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 12 Feb 2025 07:42:15 +0100 Subject: [PATCH] docs: cleanup comments --- lib/handler.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/handler.go b/lib/handler.go index c1953a5..7096518 100644 --- a/lib/handler.go +++ b/lib/handler.go @@ -146,11 +146,11 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // "index.html" resource, a human-readable view of the contents of // the collection, or something else altogether. // - // Similarly, since the definition of HEAD is a GET without a response - // message body, the semantics of HEAD are unmodified when applied to - // collection resources. + // Similarly, since the definition of HEAD is a GET without a response + // 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() {