From bcc6d1ba11e419c9e0ad3bed26ea31e2016dc873 Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 2 Sep 2015 22:23:11 -0700 Subject: [PATCH] tentatively disable content-type check --- transport/http_util.go | 3 +++ 1 file changed, 3 insertions(+) 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 {