From bdce8c00a6004958c6a1256329bd77a8c89a4318 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Fri, 26 Feb 2021 18:33:55 +0100 Subject: [PATCH] Address review comments Signed-off-by: Julien Pivotto --- config/http_config.go | 2 +- config/http_config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }