From ebd15be71568ed68cbd30d6f921b3c478fecbfdc Mon Sep 17 00:00:00 2001 From: "luca.morgese@tno.nl" Date: Mon, 11 Mar 2024 16:32:30 +0100 Subject: [PATCH] add back nil check to avoid invalidation of all tests not using auth --- utils/http/http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/http/http.go b/utils/http/http.go index f8fa2747..0023db6c 100644 --- a/utils/http/http.go +++ b/utils/http/http.go @@ -121,6 +121,9 @@ func (httpOptions *HttpOptions) addHeaderTo(request *http.Request) { } func (httpOptions *HttpOptions) addAuthTo(request *http.Request) error { + if httpOptions.Auth == nil { + return nil + } if (cacao.AuthenticationInformation{}) == *httpOptions.Auth { return nil }