mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Only override headers if they're set
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user