From 23c1040adb0d1b9d166995437f2a314359b1270d Mon Sep 17 00:00:00 2001 From: Silvio Moioli Date: Sat, 14 Jan 2023 01:09:14 +0100 Subject: [PATCH] Bugfix: do not break cert-manager when pprof is enabled (#6635) Signed-off-by: Silvio Moioli --- pkg/cluster/https.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/https.go b/pkg/cluster/https.go index f6434c4add..e55f006eee 100644 --- a/pkg/cluster/https.go +++ b/pkg/cluster/https.go @@ -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)