Only override headers if they're set

pull/9493/head
Conor Mongey 4 years ago
parent f647569b84
commit eb65e59741
No known key found for this signature in database
GPG Key ID: 5C886ACC44EB17C0

@ -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…
Cancel
Save