rc: fix debug/* commands not being available over unix sockets

This was caused by an incorrect handler URL which was passing the
debug/* commands to the debug/pprof handler by accident. This only
happened when using unix sockets.
This commit is contained in:
Nick Craig-Wood 2025-03-25 15:30:49 +00:00
parent 4d38424e6c
commit 755d72a591
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func newServer(ctx context.Context, opt *rc.Options, mux *http.ServeMux) (*Serve
) )
// Add the debug handler which is installed in the default mux // Add the debug handler which is installed in the default mux
router.Handle("/debug/*", mux) router.Handle("/debug/pprof/*", mux)
// FIXME split these up into individual functions // FIXME split these up into individual functions
router.Get("/*", s.handler) router.Get("/*", s.handler)