Browse Source

Fix debug listener

世界 11 months ago
parent
commit
af58e3bec0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      debug_http.go

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