From fde3b0d2af5a7d8b595ef4f42e793c6263482caa Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 3 Mar 2015 12:02:42 -0800 Subject: [PATCH] OwinFeature collection throws NotSupported exception as the featurecollection is immutable Addresses: https://github.com/aspnet/HttpAbstractions/issues/207 --- src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs b/src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs index 8089252955..74312601df 100644 --- a/src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs +++ b/src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs @@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Hosting.Builder { public HttpContext CreateHttpContext(IFeatureCollection featureCollection) { - return new DefaultHttpContext(featureCollection); + return new DefaultHttpContext(new FeatureCollection(featureCollection)); } } } \ No newline at end of file