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;