From a08a1b6998ae7ee559c779c284be3c2d6d9aae4e Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 6 Nov 2020 14:21:37 +0100 Subject: [PATCH] lib/api: Fix debug endpoints (ref #7001) (#7092) --- lib/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/api.go b/lib/api/api.go index e7e49b3f7..97a604802 100644 --- a/lib/api/api.go +++ b/lib/api/api.go @@ -323,7 +323,7 @@ func (s *service) serve(ctx context.Context) { debugMux.HandleFunc("/rest/debug/cpuprof", s.getCPUProf) // duration debugMux.HandleFunc("/rest/debug/heapprof", s.getHeapProf) debugMux.HandleFunc("/rest/debug/support", s.getSupportBundle) - restMux.Handler(http.MethodGet, "/rest/debug/", s.whenDebugging(debugMux)) + restMux.Handler(http.MethodGet, "/rest/debug/*method", s.whenDebugging(debugMux)) // A handler that disables caching noCacheRestMux := noCacheMiddleware(metricsMiddleware(restMux))