aboutsummaryrefslogtreecommitdiff
path: root/routers/debug
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-07-05 15:02:31 -0400
committer无闻 <joe2010xtmf@163.com>2014-07-05 15:02:31 -0400
commit21088a40f5c19d5b1e7ccf0fff33b61855f0fd55 (patch)
tree3d631a63d3c10712c73507185702785d675aea03 /routers/debug
parentfd5412ec47018a72c1f05aca487e10ea0a665e45 (diff)
parent10f932b952ef871f9d3519089d301b8cbc312457 (diff)
Merge pull request #275 from nuss-justin/dev
Fix wrong method for profiling routes.
Diffstat (limited to 'routers/debug')
-rw-r--r--routers/debug/debug.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/debug/debug.go b/routers/debug/debug.go
index c332dbea..f61e7d2e 100644
--- a/routers/debug/debug.go
+++ b/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)
}