diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-05 15:02:31 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-05 15:02:31 -0400 |
commit | 21088a40f5c19d5b1e7ccf0fff33b61855f0fd55 (patch) | |
tree | 3d631a63d3c10712c73507185702785d675aea03 /routers/debug | |
parent | fd5412ec47018a72c1f05aca487e10ea0a665e45 (diff) | |
parent | 10f932b952ef871f9d3519089d301b8cbc312457 (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.go | 8 |
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)
}
|