From d7abadee25e46b9d62fccd684897579ed402f14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F=E4=B9=90?= Date: Tue, 14 Mar 2023 14:45:45 +0800 Subject: [PATCH] x --- transport/http/codec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/http/codec.go b/transport/http/codec.go index 16d3bcc..cf65f86 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -81,6 +81,7 @@ func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) { codec, _ := CodeForRequest(r, "Accept") codec = encoding.GetCodec("xml") fmt.Println(codec.Name()) + fmt.Printf("%+v\n", se) body, err := codec.Marshal(se) if err != nil { w.WriteHeader(http.StatusInternalServerError)