Headers -> Header

This commit is contained in:
Conor Mongey
2021-01-05 15:49:03 +00:00
parent 679864ea05
commit c7cc71e2e0
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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)