Skip to content

Commit

Permalink
fix(CfhttpHttpClient): Only add authType if a username is set
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Dec 5, 2022
1 parent fd8cfa6 commit 5007f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/CfhttpHttpClient.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ component implements="HyperHttpClientInterface" {
}

// this is only necessarry for NTLM authType, BASIC is the default
if ( len( req.getAuthType() ) ) {
if ( len( req.getAuthType() ) && len( req.getUsername() ) ) {
attrCollection[ "authType" ] = req.getAuthType();
}

Expand Down

0 comments on commit 5007f1f

Please sign in to comment.