diff options
author | Justin <nuss.justin@gmail.com> | 2014-07-05 17:24:44 +0200 |
---|---|---|
committer | Justin <nuss.justin@gmail.com> | 2014-07-05 17:24:44 +0200 |
commit | 10f932b952ef871f9d3519089d301b8cbc312457 (patch) | |
tree | 3d631a63d3c10712c73507185702785d675aea03 /routers | |
parent | fd5412ec47018a72c1f05aca487e10ea0a665e45 (diff) | |
download | gitea-10f932b952ef871f9d3519089d301b8cbc312457.tar.gz gitea-10f932b952ef871f9d3519089d301b8cbc312457.zip |
Fix wrong method for profiling routes.
Diffstat (limited to 'routers')
-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 c332dbea7d..f61e7d2eeb 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)
}
|