Merge branch 'rel/2.0.0-preview2' into dev

This commit is contained in:
Stephen Halter 2017-06-06 16:03:42 -07:00
commit 6717f1674f
1 changed files with 1 additions and 1 deletions

View File

@ -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;