Unverified Commit 23c1040a authored by Silvio Moioli's avatar Silvio Moioli Committed by GitHub

Bugfix: do not break cert-manager when pprof is enabled (#6635)

parent a4549cf9
......@@ -97,7 +97,7 @@ func (c *Cluster) initClusterAndHTTPS(ctx context.Context) error {
}
if c.config.EnablePProf {
mux := mux.NewRouter()
mux := mux.NewRouter().SkipClean(true)
mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
mux.HandleFunc("/debug/pprof/profile", pprof.Profile)
mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment