Explorar o código

lib/api: Fix debug endpoints (ref #7001) (#7092)

Simon Frei %!s(int64=5) %!d(string=hai) anos
pai
achega
a08a1b6998
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/api/api.go

+ 1 - 1
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))