diff --git a/serve.go b/serve.go index dc74f4d..0e79b81 100644 --- a/serve.go +++ b/serve.go @@ -176,7 +176,7 @@ func main() { // will attempt to retrieve the index file of that directory. func handleListing(show bool, serve http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - if show || strings.HasSuffix(r.URL.Path, "/") { + if !show && strings.HasSuffix(r.URL.Path, "/") { http.NotFound(w, r) return }