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
222222 . ConfigureAwait ( false ) ;
223223 logger ? . LogDebug ( "Sasl mechanism: {Mechanisms}" , saslHandshakeResponse . Mechanisms ) ;
224224
225- var isValid = saslHandshakeResponse . Mechanisms . Contains ( parameters . AuthMechanism . ToString ( ) . ToUpper ( ) ,
225+ var isValid = saslHandshakeResponse . Mechanisms . Contains ( parameters . AuthMechanism . ToString ( ) . ToUpperInvariant ( ) ,
226226 StringComparer . OrdinalIgnoreCase ) ;
227227 if ( ! isValid )
228228 {
@@ -234,7 +234,7 @@ await client
234234 var authResponse =
235235 await client
236236 . Request < SaslAuthenticateRequest , SaslAuthenticateResponse > ( corr =>
237- new SaslAuthenticateRequest ( corr , parameters . AuthMechanism . ToString ( ) . ToUpper ( ) , saslData ) )
237+ new SaslAuthenticateRequest ( corr , parameters . AuthMechanism . ToString ( ) . ToUpperInvariant ( ) , saslData ) )
238238 . ConfigureAwait ( false ) ;
239239 ClientExceptions . MaybeThrowException ( authResponse . ResponseCode , parameters . UserName ) ;
240240
You can’t perform that action at this time.
0 commit comments