Skip to content

Commit

Permalink
Bugfix: do not break cert-manager when pprof is enabled (k3s-io#6635)
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Moioli <[email protected]>
(cherry picked from commit 23c1040)
Signed-off-by: Brad Davidson <[email protected]>
  • Loading branch information
moio authored and brandond committed Jan 27, 2023
1 parent 4c17994 commit d6fa972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6fa972

Please sign in to comment.