Skip to content

Commit e960ca6

Browse files
committed
Handle null in ConfigureKestrelServerOptions.cs
1 parent c7fcb4a commit e960ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.Common/Security/ConfigureKestrelServerOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class ConfigureKestrelServerOptions : IConfigureOptions<KestrelServerOpti
1212
public void Configure(KestrelServerOptions options)
1313
{
1414
// convert from KB to bytes
15-
options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength * 1024;
15+
options.Limits.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : long.MaxValue;
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)