We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fd0af commit 4162a52Copy full SHA for 4162a52
httpd.go
@@ -98,7 +98,7 @@ func (s *Server) Run() error {
98
registered[path] = true
99
rawPath := rawPaths[i]
100
if rawPath != "" {
101
- m.Get(rawPath, func(w http.ResponseWriter, r *http.Request) {
+ m.Any(rawPath, func(w http.ResponseWriter, r *http.Request) {
102
http.Redirect(w, r, rawPath+"/", http.StatusFound)
103
})
104
}
@@ -111,7 +111,7 @@ func (s *Server) Run() error {
111
112
log.Printf("starting static file server for: %s", path)
113
fileServer := http.FileServer(http.Dir(path))
114
- m.Get("/**", fileServer.ServeHTTP)
+ m.Any("/**", fileServer.ServeHTTP)
115
116
log.Printf("starting server at %s", s.Conf.Addr)
117
0 commit comments