diff --git a/src/Stratis.Bitcoin.Features.RPC/RPCClient.cs b/src/Stratis.Bitcoin.Features.RPC/RPCClient.cs index ae61b8901e9..dd615c66741 100644 --- a/src/Stratis.Bitcoin.Features.RPC/RPCClient.cs +++ b/src/Stratis.Bitcoin.Features.RPC/RPCClient.cs @@ -527,7 +527,9 @@ private async Task SendBatchAsyncCoreAsync(List<(RPCRequest request, TaskComplet try { webResponse = await webRequest.GetResponseAsync().ConfigureAwait(false); - webResponse.ContentType = "application/json; charset=utf-8"; + if (string.IsNullOrEmpty(webResponse.ContentType)) + webResponse.ContentType = "application/json; charset=utf-8"; + response = JArray.Load(new JsonTextReader( new StreamReader( await ToMemoryStreamAsync(webResponse.GetResponseStream()).ConfigureAwait(false), Encoding.UTF8)));