Only override headers if they're set

This commit is contained in:
Conor Mongey
2021-01-05 16:03:16 +00:00
parent b2724ba64d
commit 214f4ad4d3

View File

@@ -677,7 +677,9 @@ func (c *Client) newRequest(method, path string) (*request, error) {
}
}
r.header = c.config.Header
if c.config.Header != nil {
r.header = c.config.Header
}
return r, nil
}