Skip to content

Commit

Permalink
transport: upstream fix from grpc/grpc-go#4627
Browse files Browse the repository at this point in the history
  • Loading branch information
adityamaru committed Jul 28, 2021
1 parent 53111f4 commit fae661e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google.golang.org/grpc/internal/transport/http2_client.go
Expand Up @@ -1275,6 +1275,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
contentTypeErr string
grpcMessage string
statusGen *status.Status
recvCompress string

httpStatus string
rawStatus string
Expand All @@ -1292,7 +1293,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
mdata[hf.Name] = append(mdata[hf.Name], hf.Value)
isGRPC = true
case "grpc-encoding":
s.recvCompress = hf.Value
recvCompress = hf.Value
case "grpc-status":
rawStatus = hf.Value
case "grpc-message":
Expand Down Expand Up @@ -1384,6 +1385,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
// These values can be set without any synchronization because
// stream goroutine will read it only after seeing a closed
// headerChan which we'll close after setting this.
s.recvCompress = recvCompress
if len(mdata) > 0 {
s.header = mdata
}
Expand Down

0 comments on commit fae661e

Please sign in to comment.