From 0e5a03ac30dfbfac786f75764be45f25c05cfeea 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:19:26 +0800 Subject: [PATCH] x --- transport/http/codec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/http/codec.go b/transport/http/codec.go index 4013bca..d3fbc1a 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -88,7 +88,7 @@ func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) { func CodeForRequest(r *http.Request, name string) (encoding.Codec, bool) { for _, accept := range r.Header[name] { a := httputil.ContentSubtype(accept) - fmt.Println("aaa", a) + fmt.Println("aaa", name, a) codec := encoding.GetCodec(a) if codec != nil { return codec, true