From 54f70cd1d76b6bd6436778b363316fa2277f2ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=AE=8F=E4=BC=9F?= <516678532@qq.com> Date: Wed, 7 Jul 2021 13:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9Etext=E6=97=B6=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=20json=E5=BA=8F=E5=88=97=E5=8C=96=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RemoteRequest/Internal/HttpClientExecutePartMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Furion/RemoteRequest/Internal/HttpClientExecutePartMethods.cs b/framework/Furion/RemoteRequest/Internal/HttpClientExecutePartMethods.cs index 5c7128e633..a9a4cf2da9 100644 --- a/framework/Furion/RemoteRequest/Internal/HttpClientExecutePartMethods.cs +++ b/framework/Furion/RemoteRequest/Internal/HttpClientExecutePartMethods.cs @@ -312,7 +312,7 @@ namespace Furion.RemoteRequest var text = await streamReader.ReadToEndAsync(); // 释放流 await stream.DisposeAsync(); - + if (string.IsNullOrWhiteSpace(text)) return default; // 解析 Json 序列化提供器 var jsonSerializer = App.GetService(JsonSerialization.ProviderType ?? typeof(SystemTextJsonSerializerProvider), RequestScoped) as IJsonSerializerProvider; -- Gitee