diff --git a/transport/http_util.go b/transport/http_util.go index 281819c7..3370cc45 100644 --- a/transport/http_util.go +++ b/transport/http_util.go @@ -141,10 +141,13 @@ func newHPACKDecoder() *hpackDecoder { d.h = hpack.NewDecoder(http2InitHeaderTableSize, func(f hpack.HeaderField) { switch f.Name { case "content-type": + // TODO(zhaoq): Tentatively disable the check until a bug is fixed. + /* if !strings.Contains(f.Value, "application/grpc") { d.err = StreamErrorf(codes.FailedPrecondition, "transport: received the unexpected header") return } + */ case "grpc-status": code, err := strconv.Atoi(f.Value) if err != nil {