Skip to content

Commit

Permalink
The issue that the response header is not assigned a value is fixed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shima-park committed Jun 11, 2024
1 parent ba5a651 commit 4aa4f7c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions transport/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,13 @@ func (client *Client) do(req *http.Request) (*http.Response, error) {
}
resp, err := client.cc.Do(req)
if err == nil {
t, ok := transport.FromClientContext(req.Context())
if ok {
ht, ok := t.(*Transport)
if ok {
ht.replyHeader = headerCarrier(resp.Header)
}
}
err = client.opts.errorDecoder(req.Context(), resp)
}
if done != nil {
Expand Down

0 comments on commit 4aa4f7c

Please sign in to comment.