Keep arguments as string instead of bytes

This commit is contained in:
Mark van Renswoude 2023-03-30 13:58:44 +02:00
parent 1b9bac41a6
commit 3c7dc09bff
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ namespace Tapeti.Connection
{ {
JTokenType.Integer => pair.Value.Value<int>(), JTokenType.Integer => pair.Value.Value<int>(),
JTokenType.Float => pair.Value.Value<double>(), JTokenType.Float => pair.Value.Value<double>(),
JTokenType.String => Encoding.UTF8.GetBytes(pair.Value.Value<string>() ?? string.Empty), JTokenType.String => pair.Value.Value<string>() ?? string.Empty,
JTokenType.Boolean => pair.Value.Value<bool>(), JTokenType.Boolean => pair.Value.Value<bool>(),
_ => throw new ArgumentOutOfRangeException(nameof(arguments)) _ => throw new ArgumentOutOfRangeException(nameof(arguments))
}; };