diff --git a/transport/http_util.go b/transport/http_util.go index f9d9fdf0..f1233fa4 100644 --- a/transport/http_util.go +++ b/transport/http_util.go @@ -143,7 +143,7 @@ func newHPACKDecoder() *hpackDecoder { switch f.Name { case "content-type": if !strings.Contains(f.Value, "application/grpc") { - d.err = StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected header") + d.err = StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected content-type %q", f.Value) return } case "grpc-encoding":