We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fcb4a commit e960ca6Copy full SHA for e960ca6
src/Umbraco.Web.Common/Security/ConfigureKestrelServerOptions.cs
@@ -12,7 +12,7 @@ public class ConfigureKestrelServerOptions : IConfigureOptions<KestrelServerOpti
12
public void Configure(KestrelServerOptions options)
13
{
14
// convert from KB to bytes
15
- options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength * 1024;
+ options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
16
}
17
18
0 commit comments