mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 21:27:51 +01:00
Merge pull request #275 from nuss-justin/dev
Fix wrong method for profiling routes.
This commit is contained in:
commit
21088a40f5
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user