From 89047ab394358a8cb20ffa86fdb184fe9bb67177 Mon Sep 17 00:00:00 2001 From: wanggaofeng <15601716045@163.com> Date: Fri, 5 Jan 2024 15:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpClientStudy.WebApp/Program.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/HttpClientStudy.WebApp/Program.cs b/HttpClientStudy.WebApp/Program.cs index 45e4f78..c768020 100644 --- a/HttpClientStudy.WebApp/Program.cs +++ b/HttpClientStudy.WebApp/Program.cs @@ -40,7 +40,6 @@ namespace HttpClientStudy.WebApp //配置Kestrel服务器选项 builder.Services.Configure( option => { - //(允许get方法有请求body) //ASP.NET Core 3.0 之前的版本,AllowSynchronousIO 默认是开启的 //设置 true :允许同步 IO 操作,这样允许接收Get请求中的请求体数据.但只能直接从流中读取,不能自动模型绑定。 option.AllowSynchronousIO = true;