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)