Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/transport/http2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
recvCompress string
httpStatusErr string
// the code from the grpc-status header, if present
grpcStatusCode = codes.Internal
grpcStatusCode = codes.Unknown
// headerError is set if an error is encountered while parsing the headers
headerError string
httpStatus string
Expand Down
4 changes: 2 additions & 2 deletions internal/transport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2794,7 +2794,7 @@ func (s) TestClientDecodeTrailer(t *testing.T) {
{Name: ":status", Value: "xxxx"},
},
},
wantEndStreamStatus: status.New(codes.Internal, ""),
wantEndStreamStatus: status.New(codes.Unknown, ""),
},
{
name: "http2_frame_size_exceeds",
Expand All @@ -2813,7 +2813,7 @@ func (s) TestClientDecodeTrailer(t *testing.T) {
{Name: "content-type", Value: "application/grpc"},
},
},
wantEndStreamStatus: status.New(codes.Internal, ""),
wantEndStreamStatus: status.New(codes.Unknown, ""),
},
{
name: "deadline_exceeded_status",
Expand Down
2 changes: 1 addition & 1 deletion test/http_header_end2end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (s) TestHTTPHeaderFrameErrorHandlingNormalTrailer(t *testing.T) {
// trailer missing grpc-status
":status", "502",
},
errCode: codes.Internal,
errCode: codes.Unknown,
},
{
name: "malformed grpc-status-details-bin field with status 404 to be ignored due to content type",
Expand Down
Loading