From 3c7dc09bfff60d5339327bc565182876f85f9e70 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Thu, 30 Mar 2023 13:58:44 +0200 Subject: [PATCH] Keep arguments as string instead of bytes --- Tapeti/Connection/TapetiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tapeti/Connection/TapetiClient.cs b/Tapeti/Connection/TapetiClient.cs index a23c8df..07e2718 100644 --- a/Tapeti/Connection/TapetiClient.cs +++ b/Tapeti/Connection/TapetiClient.cs @@ -326,7 +326,7 @@ namespace Tapeti.Connection { JTokenType.Integer => pair.Value.Value(), JTokenType.Float => pair.Value.Value(), - JTokenType.String => Encoding.UTF8.GetBytes(pair.Value.Value() ?? string.Empty), + JTokenType.String => pair.Value.Value() ?? string.Empty, JTokenType.Boolean => pair.Value.Value(), _ => throw new ArgumentOutOfRangeException(nameof(arguments)) };