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