From 4057acc287b526516153873e2a51a1836d08ff23 Mon Sep 17 00:00:00 2001 From: Shine Li Date: Fri, 25 Dec 2020 15:24:31 +0800 Subject: [PATCH] Fix dotnet5 (#442) --- src/Directory.Build.props | 2 +- src/RpcServer/RpcServer.cs | 2 +- src/RpcServer/RpcServer.csproj | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index c8dcf12f9..f571077d6 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,7 +15,7 @@ - + diff --git a/src/RpcServer/RpcServer.cs b/src/RpcServer/RpcServer.cs index b20a22caf..367b34c68 100644 --- a/src/RpcServer/RpcServer.cs +++ b/src/RpcServer/RpcServer.cs @@ -170,7 +170,7 @@ private async Task ProcessAsync(HttpContext context) using StreamReader reader = new StreamReader(context.Request.Body); try { - request = JObject.Parse(reader.ReadToEnd()); + request = JObject.Parse(await reader.ReadToEndAsync()); } catch (FormatException) { } } diff --git a/src/RpcServer/RpcServer.csproj b/src/RpcServer/RpcServer.csproj index f04dbdda5..a3e5b6af8 100644 --- a/src/RpcServer/RpcServer.csproj +++ b/src/RpcServer/RpcServer.csproj @@ -11,9 +11,5 @@ PreserveNewest - - - - - +