Handle null in ConfigureKestrelServerOptions.cs
This commit is contained in:
@@ -12,7 +12,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
public void Configure(KestrelServerOptions options)
|
||||
{
|
||||
// convert from KB to bytes
|
||||
options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength * 1024;
|
||||
options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user