Skip to content

Commit cc75e99

Browse files
committed
change static handler from m.Get to m.Any due to breaking compatibitily of routing order of martini
1 parent 19fd0af commit cc75e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (s *Server) Run() error {
111111

112112
log.Printf("starting static file server for: %s", path)
113113
fileServer := http.FileServer(http.Dir(path))
114-
m.Get("/**", fileServer.ServeHTTP)
114+
m.Any("/**", fileServer.ServeHTTP)
115115

116116
log.Printf("starting server at %s", s.Conf.Addr)
117117

0 commit comments

Comments
 (0)