Skip to content

Commit

Permalink
avoid concurrent map iteration and map write(fix #111)
Browse files Browse the repository at this point in the history
  • Loading branch information
imroc committed Apr 24, 2022
1 parent f51cc13 commit 787c86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ func (c *Client) do(r *Request) (resp *Response, err error) {
if r.Headers == nil {
header = make(http.Header)
} else {
header = r.Headers.Clone()
header = r.Headers
}
contentLength := int64(len(r.body))

Expand Down

0 comments on commit 787c86b

Please sign in to comment.