OwinFeature collection throws NotSupported exception as the featurecollection is immutable

Addresses: https://github.com/aspnet/HttpAbstractions/issues/207
This commit is contained in:
Praburaj 2015-03-03 12:02:42 -08:00
parent d6535eeba0
commit fde3b0d2af
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Hosting.Builder
{
public HttpContext CreateHttpContext(IFeatureCollection featureCollection)
{
return new DefaultHttpContext(featureCollection);
return new DefaultHttpContext(new FeatureCollection(featureCollection));
}
}
}