From 84d2e6371d2b91757898417c02c5d53a0a0f5162 Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Wed, 10 Sep 2025 08:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- host/JiShe.IoT.HttpApi.Host/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/JiShe.IoT.HttpApi.Host/Program.cs b/host/JiShe.IoT.HttpApi.Host/Program.cs index 8fc4c84..edd39b1 100644 --- a/host/JiShe.IoT.HttpApi.Host/Program.cs +++ b/host/JiShe.IoT.HttpApi.Host/Program.cs @@ -35,7 +35,7 @@ public class Program await builder.AddApplicationAsync(); builder.WebHost.ConfigureKestrel((context, options) => { - options.Limits.MaxRequestBodySize = 10 * 1024 * 1024; // 10MB + options.Limits.MaxRequestBodySize = 500 * 1024 * 1024; // 500MB null²»ÊÜÏÞÖÆ options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(2); options.Limits.RequestHeadersTimeout = TimeSpan.FromMinutes(1); });