diff options
Diffstat (limited to 'internal/headers.go')
| -rw-r--r-- | internal/headers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/headers.go b/internal/headers.go index bdb5e9e..eb7778b 100644 --- a/internal/headers.go +++ b/internal/headers.go @@ -73,7 +73,7 @@ func NoStoreCache(next http.Handler) http.Handler { }) } -// Do not allow browsing directory listings in paths that end with / +// NoBrowsing prevents directory browsing by returning a 404 for any request that ends with a "/". func NoBrowsing(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "/") { |
