@ -143,7 +143,7 @@ func newHPACKDecoder() *hpackDecoder {
|
|||||||
switch f.Name {
|
switch f.Name {
|
||||||
case "content-type":
|
case "content-type":
|
||||||
if !strings.Contains(f.Value, "application/grpc") {
|
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
|
return
|
||||||
}
|
}
|
||||||
case "grpc-encoding":
|
case "grpc-encoding":
|
||||||
|
Reference in New Issue
Block a user