Skip to content

Commit b237f59

Browse files
authored
Merge pull request #329 from Noonlord/main
Fix connections to server on different locales
2 parents 90a6752 + 4601429 commit b237f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RabbitMQ.Stream.Client/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)