1
0
mirror of synced 2024-12-04 16:43:09 +01:00

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

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))
}; };