Browse Source

取消dataRate限制

陈国伟 3 years ago
parent
commit
e00c6c14cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      FastGithub.HttpServer/KestrelServerOptionsExtensions.cs

+ 2 - 0
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;
         }
 
         /// <summary>