Skip to content

Commit

Permalink
httpclient: patch reset headers
Browse files Browse the repository at this point in the history
  • Loading branch information
alileza committed Oct 20, 2020
1 parent 4da5e8a commit 6619614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resource/httpclient/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ func (c *Client) Ready() error {

func (c *Client) Reset() error {
c.lastResponse = nil
c.requestHeaders = defaultHeaders
c.requestHeaders = make(http.Header)
for key, val := range defaultHeaders {
c.requestHeaders[key] = val
}
return nil
}

Expand Down

0 comments on commit 6619614

Please sign in to comment.