Skip to content

Commit

Permalink
docs: cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 12, 2025
1 parent 3cfaa0d commit f61b7ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f61b7ca

Please sign in to comment.