diff --git a/transport/http/codec.go b/transport/http/codec.go index e7ec968..16d3bcc 100644 --- a/transport/http/codec.go +++ b/transport/http/codec.go @@ -80,6 +80,7 @@ func DefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error) { se := errors.FromError(err) codec, _ := CodeForRequest(r, "Accept") codec = encoding.GetCodec("xml") + fmt.Println(codec.Name()) body, err := codec.Marshal(se) if err != nil { w.WriteHeader(http.StatusInternalServerError)