Is a Null Header Value a Set header value? #4754
Labels
affected-very-few
This issue impacts very few customers
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
bug
This issue describes a behavior which is not expected - a bug.
feature-kestrel
help wanted
Up for grabs. We would accept a PR to help resolve this issue
severity-nice-to-have
This label is used by an internal tool
Milestone
Setting a Header to null
However it will cause an error if a real value is added after:
If you can't smell it, see it, taste it, does it exist?
Should it not throw, but set the value? (as no value is set)
From aspnet/KestrelHttpServer#2347 (which was treating it as not set for perf reasons; i.e. don't expend extra cycles tracking nothing for no effect other than to just to throw an error on a second add)
/cc @halter73 @davidfowl
The text was updated successfully, but these errors were encountered: