diff --git a/config/http_config.go b/config/http_config.go index 061d626f..af9e463b 100644 --- a/config/http_config.go +++ b/config/http_config.go @@ -116,7 +116,7 @@ type HTTPClientConfig struct { ProxyURL URL `yaml:"proxy_url,omitempty"` // TLSConfig to use to connect to the targets. TLSConfig TLSConfig `yaml:"tls_config,omitempty"` - // FollowRedirects specifies wheter the client should follow HTTP 3xx redirects. + // FollowRedirects specifies whether the client should follow HTTP 3xx redirects. // The omitempty flag is not set, because it would be hidden from the // marshalled configuration when set to false. FollowRedirects bool `yaml:"follow_redirects"` diff --git a/config/http_config_test.go b/config/http_config_test.go index 3bd0b283..c96560e4 100644 --- a/config/http_config_test.go +++ b/config/http_config_test.go @@ -357,7 +357,7 @@ func TestNewClientFromConfig(t *testing.T) { } response, err := client.Get(testServer.URL) if err != nil { - t.Errorf("Can't connect to the test server using this config: %+v %v", validConfig.clientConfig, err) + t.Errorf("Can't connect to the test server using this config: %+v: %v", validConfig.clientConfig, err) continue }