Merge branch 'rel/2.0.0-preview2' into dev
This commit is contained in:
commit
6717f1674f
|
|
@ -74,7 +74,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
|
|||
}
|
||||
|
||||
var bodySizeFeature = httpContext.Features.Get<IHttpMaxRequestBodySizeFeature>();
|
||||
if (bodySizeFeature != null)
|
||||
if (bodySizeFeature != null && !bodySizeFeature.IsReadOnly)
|
||||
{
|
||||
// IIS already limits this, no need to do it twice.
|
||||
bodySizeFeature.MaxRequestBodySize = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue