Revert "tsweb: update ServeMux matching to 1.22.0 syntax (#11087)" (#11089)

This reverts commit 291f91d164.

Updates #cleanup

This PR needs additional changes to the registration of child handlers under /debug

Signed-off-by: Patrick O'Doherty <patrick@tailscale.com>
pull/11091/head
Patrick O'Doherty 10 months ago committed by GitHub
parent 291f91d164
commit 7c52b27daf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -46,7 +46,7 @@ func Debugger(mux *http.ServeMux) *DebugHandler {
ret := &DebugHandler{ ret := &DebugHandler{
mux: mux, mux: mux,
} }
mux.Handle("GET /debug/", ret) mux.Handle("/debug/", ret)
ret.KVFunc("Uptime", func() any { return varz.Uptime() }) ret.KVFunc("Uptime", func() any { return varz.Uptime() })
ret.KV("Version", version.Long()) ret.KV("Version", version.Long())

Loading…
Cancel
Save