From 787c86b4b358f2cbc17c937b3fa1a2e157119484 Mon Sep 17 00:00:00 2001 From: roc Date: Sun, 24 Apr 2022 14:18:48 +0800 Subject: [PATCH] avoid concurrent map iteration and map write(fix #111) --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 85f74235..998c3a87 100644 --- a/client.go +++ b/client.go @@ -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))