-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-http-abstractions
Milestone
Description
Currently, invoking the HttpRequest.HasFormContentType
property will implicitly compute a FormFeature
and use use that to compute whether the content type is form-related:
aspnetcore/src/Http/Http/src/Internal/DefaultHttpRequest.cs
Lines 150 to 153 in 76d2fda
public override bool HasFormContentType | |
{ | |
get { return FormFeature.HasFormContentType; } | |
} |
We should consider updating this implementation such that it checks the content-type directly instead of allocating a feature.
cc: @davidfowl @Tratcher
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsfeature-http-abstractions