Skip to content

Commit

Permalink
changed authinfo comparison from nil to empty struct
Browse files Browse the repository at this point in the history
  • Loading branch information
lucamrgs authored and MaartendeKruijf committed Mar 13, 2024
1 parent 402aec2 commit e9e30fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (httpOptions *HttpOptions) addHeaderTo(request *http.Request) {
}

func (httpOptions *HttpOptions) addAuthTo(request *http.Request) error {
if httpOptions.Auth == nil {
if (cacao.AuthenticationInformation{}) == *httpOptions.Auth {
return nil
}
if err := verifyAuthInfoMatchesAgentTarget(httpOptions.Target, httpOptions.Auth); err != nil {
Expand Down

0 comments on commit e9e30fc

Please sign in to comment.