mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Headers -> Header
This commit is contained in:
@@ -156,7 +156,7 @@ type Config struct {
|
||||
// TLSConfig is ignored if HttpClient is set.
|
||||
TLSConfig *TLSConfig
|
||||
|
||||
Headers http.Header
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
// ClientConfig copies the configuration with a new client address, region, and
|
||||
@@ -676,7 +676,7 @@ func (c *Client) newRequest(method, path string) (*request, error) {
|
||||
}
|
||||
}
|
||||
|
||||
r.header = c.config.Headers
|
||||
r.header = c.config.Header
|
||||
|
||||
return r, nil
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ func TestParseWriteMeta(t *testing.T) {
|
||||
func TestClientHeader(t *testing.T) {
|
||||
t.Parallel()
|
||||
c, s := makeClient(t, func(c *Config) {
|
||||
c.Headers = http.Header{
|
||||
c.Header = http.Header{
|
||||
"Hello": []string{"World"},
|
||||
}
|
||||
}, nil)
|
||||
|
||||
Reference in New Issue
Block a user