Parcourir la source

取消dataRate限制

陈国伟 il y a 3 ans
Parent
commit
e00c6c14cd
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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)
         public static void NoLimit(this KestrelServerOptions kestrel)
         {
         {
             kestrel.Limits.MaxRequestBodySize = null;
             kestrel.Limits.MaxRequestBodySize = null;
+            kestrel.Limits.MinResponseDataRate = null;
+            kestrel.Limits.MinRequestBodyDataRate = null;
         }
         }
 
 
         /// <summary>
         /// <summary>