From 0e22586e1279732dd7e2353a0361e1f9b802c632 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Tue, 20 Apr 2021 06:27:57 -0500 Subject: [PATCH] fix method --- server/routes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/routes.go b/server/routes.go index ff3c78e..0887a20 100755 --- a/server/routes.go +++ b/server/routes.go @@ -119,6 +119,10 @@ func (s *Server) static(w http.ResponseWriter, r *http.Request) { } func (s *Server) _static(w http.ResponseWriter, r *http.Request) error { + if r.Method != http.MethodGet { + http.FileServer(s.fileDir).ServeHTTP(w, r) + return nil + } f, err := s.fileDir.Open(path.Clean(r.URL.Path)) if err != nil { return err