Quellcode durchsuchen

Fix wrong method for profiling routes.

Justin vor 10 Jahren
Ursprung
Commit
10f932b952
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4 4
      routers/debug/debug.go

+ 4 - 4
routers/debug/debug.go

@@ -9,8 +9,8 @@ import (
 )
 
 func RegisterRoutes(r martini.Router) {
-	r.Get("/debug/pprof/cmdline", pprof.Cmdline)
-	r.Get("/debug/pprof/profile", pprof.Profile)
-	r.Get("/debug/pprof/symbol", pprof.Symbol)
-	r.Get("/debug/pprof/**", pprof.Index)
+	r.Any("/debug/pprof/cmdline", pprof.Cmdline)
+	r.Any("/debug/pprof/profile", pprof.Profile)
+	r.Any("/debug/pprof/symbol", pprof.Symbol)
+	r.Any("/debug/pprof/**", pprof.Index)
 }