Skip to content

Commit

Permalink
Fixing the IIS Express maxAllowedContentLength
Browse files Browse the repository at this point in the history
  • Loading branch information
elit0451 committed Sep 15, 2021
1 parent 7200064 commit 00bd5bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ConfigureIISServerOptions : IConfigureOptions<IISServerOptions>
public void Configure(IISServerOptions options)
{
// convert from KB to bytes
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength * 1024;
options.MaxRequestBodySize = _runtimeSettings.Value.MaxRequestLength.HasValue ? _runtimeSettings.Value.MaxRequestLength.Value * 1024 : int.MaxValue;
}
}
}

0 comments on commit 00bd5bd

Please sign in to comment.