File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ await client
222
222
. ConfigureAwait ( false ) ;
223
223
logger ? . LogDebug ( "Sasl mechanism: {Mechanisms}" , saslHandshakeResponse . Mechanisms ) ;
224
224
225
- var isValid = saslHandshakeResponse . Mechanisms . Contains ( parameters . AuthMechanism . ToString ( ) . ToUpper ( ) ,
225
+ var isValid = saslHandshakeResponse . Mechanisms . Contains ( parameters . AuthMechanism . ToString ( ) . ToUpperInvariant ( ) ,
226
226
StringComparer . OrdinalIgnoreCase ) ;
227
227
if ( ! isValid )
228
228
{
@@ -234,7 +234,7 @@ await client
234
234
var authResponse =
235
235
await client
236
236
. Request < SaslAuthenticateRequest , SaslAuthenticateResponse > ( corr =>
237
- new SaslAuthenticateRequest ( corr , parameters . AuthMechanism . ToString ( ) . ToUpper ( ) , saslData ) )
237
+ new SaslAuthenticateRequest ( corr , parameters . AuthMechanism . ToString ( ) . ToUpperInvariant ( ) , saslData ) )
238
238
. ConfigureAwait ( false ) ;
239
239
ClientExceptions . MaybeThrowException ( authResponse . ResponseCode , parameters . UserName ) ;
240
240
You can’t perform that action at this time.
0 commit comments