From af58e3bec0cb586d5ea64e9a8ebbeacd198d7607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 20 Nov 2024 10:52:26 +0800 Subject: [PATCH] Fix debug listener --- debug_http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_http.go b/debug_http.go index df356c2e..32159778 100644 --- a/debug_http.go +++ b/debug_http.go @@ -46,7 +46,7 @@ func applyDebugListenOption(options option.DebugOptions) { encoder := json.NewEncoder(writer) encoder.SetIndent("", " ") - encoder.Encode(memObject) + encoder.Encode(&memObject) }) r.Route("/pprof", func(r chi.Router) { r.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {