diff --git a/server/internal/http/http.go b/server/internal/http/http.go index d1294d3..32c1c10 100644 --- a/server/internal/http/http.go +++ b/server/internal/http/http.go @@ -36,7 +36,7 @@ func New(conf *config.Server, webSocketHandler types.WebSocketHandler) *Server { fs := http.FileServer(http.Dir(conf.Static)) router.Get("/*", func(w http.ResponseWriter, r *http.Request) { - if _, err := os.Stat(conf.Static + r.RequestURI); !os.IsNotExist(err) { + if _, err := os.Stat(conf.Static + r.URL.Path); !os.IsNotExist(err) { fs.ServeHTTP(w, r) } else { w.WriteHeader(http.StatusNotFound)