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

Commit 72d30a5

Browse files
committed
Tests if removing allocations adds perf
1 parent e2a0e88 commit 72d30a5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Microsoft.AspNetCore.Http/HttpContextFactory.cs

-6
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,12 @@ public HttpContext Create(IFeatureCollection featureCollection)
4343
throw new ArgumentNullException(nameof(featureCollection));
4444
}
4545

46-
var responseCookiesFeature = new ResponseCookiesFeature(featureCollection, _builderPool);
47-
featureCollection.Set<IResponseCookiesFeature>(responseCookiesFeature);
48-
4946
var httpContext = new DefaultHttpContext(featureCollection);
5047
if (_httpContextAccessor != null)
5148
{
5249
_httpContextAccessor.HttpContext = httpContext;
5350
}
5451

55-
var formFeature = new FormFeature(httpContext.Request, _formOptions);
56-
featureCollection.Set<IFormFeature>(formFeature);
57-
5852
return httpContext;
5953
}
6054

0 commit comments

Comments
 (0)