Only override headers if they're set
This commit is contained in:
parent
e4b4c31d28
commit
e2a2ebeb9e
|
@ -858,8 +858,9 @@ func (c *Client) newRequest(method, path string) *request {
|
|||
header: make(http.Header),
|
||||
}
|
||||
|
||||
r.header = c.config.Header
|
||||
|
||||
if c.config.Header != nil {
|
||||
r.header = c.config.Header
|
||||
}
|
||||
if c.config.Datacenter != "" {
|
||||
r.params.Set("dc", c.config.Datacenter)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue