diff --git a/transport/http/codec.go b/transport/http/codec.go index a90a702..357c471 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("%+v\n", r.Header) for _, accept := range r.Header[name] { a := httputil.ContentSubtype(accept) fmt.Println(name, a)