Skip to content

Commit

Permalink
add back nil check to avoid invalidation of all tests not using auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lucamrgs authored and MaartendeKruijf committed Mar 13, 2024
1 parent e9e30fc commit 6df21c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6df21c8

Please sign in to comment.