From 55542c507cb50ef9cb80b9f5f64996d0578cfe72 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:36:58 +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 43a5931..089b9e6 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -87,6 +87,7 @@ func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) { _, _ = w.Write(body) } func CodeForRequest(r *http.Request, name string) (encoding.Codec, bool) { + fmt.Printf("rr%+v\n", r.Header) for _, accept := range r.Header[name] { a := httputil.ContentSubtype(accept) fmt.Println(name, a)