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) {