Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit fde3b0d

Browse files
author
Praburaj
committed
OwinFeature collection throws NotSupported exception as the featurecollection is immutable
Addresses: aspnet/HttpAbstractions#207
1 parent d6535ee commit fde3b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNet.Hosting/Builder/HttpContextFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class HttpContextFactory : IHttpContextFactory
1111
{
1212
public HttpContext CreateHttpContext(IFeatureCollection featureCollection)
1313
{
14-
return new DefaultHttpContext(featureCollection);
14+
return new DefaultHttpContext(new FeatureCollection(featureCollection));
1515
}
1616
}
1717
}

0 commit comments

Comments
 (0)