Skip to content

Commit bdce8c0

Browse files
author
Julien Pivotto
committed
Address review comments
Signed-off-by: Julien Pivotto <[email protected]>
1 parent f9eb271 commit bdce8c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/http_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type HTTPClientConfig struct {
116116
ProxyURL URL `yaml:"proxy_url,omitempty"`
117117
// TLSConfig to use to connect to the targets.
118118
TLSConfig TLSConfig `yaml:"tls_config,omitempty"`
119-
// FollowRedirects specifies wheter the client should follow HTTP 3xx redirects.
119+
// FollowRedirects specifies whether the client should follow HTTP 3xx redirects.
120120
// The omitempty flag is not set, because it would be hidden from the
121121
// marshalled configuration when set to false.
122122
FollowRedirects bool `yaml:"follow_redirects"`

config/http_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func TestNewClientFromConfig(t *testing.T) {
357357
}
358358
response, err := client.Get(testServer.URL)
359359
if err != nil {
360-
t.Errorf("Can't connect to the test server using this config: %+v %v", validConfig.clientConfig, err)
360+
t.Errorf("Can't connect to the test server using this config: %+v: %v", validConfig.clientConfig, err)
361361
continue
362362
}
363363

0 commit comments

Comments
 (0)