From e589e4aa709cabe624a212445a8374008979bd15 Mon Sep 17 00:00:00 2001 From: Umputun Date: Wed, 14 Feb 2018 03:22:14 -0600 Subject: [PATCH] . --- app/rest/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/server.go b/app/rest/server.go index 1fad5433..8bba5e85 100644 --- a/app/rest/server.go +++ b/app/rest/server.go @@ -422,7 +422,7 @@ func (s *Server) addFileServer(r chi.Router, path string, root http.FileSystem) r.Get(path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // don't show dirs, just serve files - if strings.HasSuffix(r.URL.Path, "/") && len(r.URL.Path) > 1 && r.URL.Path != (path+"/") { + if strings.HasSuffix(r.URL.Path, "/") && len(r.URL.Path) > 1 && r.URL.Path != "/web/" { http.NotFound(w, r) return }