From 0b1d03c08613acad5db019fe340939a8174b2714 Mon Sep 17 00:00:00 2001 From: Nihal <38865967+wasim-nihal@users.noreply.github.com> Date: Sat, 2 Sep 2023 13:44:14 +0530 Subject: [PATCH 1/2] Update config/http_config.go Co-authored-by: Julien Pivotto Signed-off-by: Nihal <38865967+wasim-nihal@users.noreply.github.com> --- config/http_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/http_config.go b/config/http_config.go index c58d2e63..c6fd65f2 100644 --- a/config/http_config.go +++ b/config/http_config.go @@ -657,7 +657,7 @@ type basicAuthRoundTripper struct { // NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has // already been set. -func NewBasicAuthRoundTripper(username string, password Secret, passwordFile string, usernameFile string, rt http.RoundTripper) http.RoundTripper { +func NewBasicAuthRoundTripper(username string, password Secret, usernameFile, passwordFile string, rt http.RoundTripper) http.RoundTripper { return &basicAuthRoundTripper{username, password, passwordFile, usernameFile, rt} } From 0af702de4b8c18739ea649a59b7904998035101d Mon Sep 17 00:00:00 2001 From: Nihal <38865967+wasim-nihal@users.noreply.github.com> Date: Sat, 2 Sep 2023 13:44:32 +0530 Subject: [PATCH 2/2] Update config/http_config.go Co-authored-by: Julien Pivotto Signed-off-by: Nihal <38865967+wasim-nihal@users.noreply.github.com> --- config/http_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/http_config.go b/config/http_config.go index c6fd65f2..4314d457 100644 --- a/config/http_config.go +++ b/config/http_config.go @@ -658,7 +658,7 @@ type basicAuthRoundTripper struct { // NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has // already been set. func NewBasicAuthRoundTripper(username string, password Secret, usernameFile, passwordFile string, rt http.RoundTripper) http.RoundTripper { - return &basicAuthRoundTripper{username, password, passwordFile, usernameFile, rt} + return &basicAuthRoundTripper{username, password, usernameFile, passwordFile, rt} } func (rt *basicAuthRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {