diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-06 17:32:39 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-06 17:32:39 -0400 |
commit | 9b014d05e4c656d023e57d61af370bc8d8f20216 (patch) | |
tree | 00f36c54e210ac292eaff335db76653263f98dac /routers/debug/debug.go | |
parent | 097c8e05e6791efe3876eedf989e2b69190f7f8f (diff) | |
parent | 21088a40f5c19d5b1e7ccf0fff33b61855f0fd55 (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'routers/debug/debug.go')
-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)
}
|