Keep arguments as string instead of bytes
This commit is contained in:
parent
1b9bac41a6
commit
3c7dc09bff
@ -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))
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user