From e00c6c14cdf8c12b53bf099c66592fb2f1debba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Sat, 18 Sep 2021 10:45:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88dataRate=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.HttpServer/KestrelServerOptionsExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs b/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs index c3dfaac..3493e98 100644 --- a/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs +++ b/FastGithub.HttpServer/KestrelServerOptionsExtensions.cs @@ -23,6 +23,8 @@ namespace FastGithub public static void NoLimit(this KestrelServerOptions kestrel) { kestrel.Limits.MaxRequestBodySize = null; + kestrel.Limits.MinResponseDataRate = null; + kestrel.Limits.MinRequestBodyDataRate = null; } ///