-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
CoreWCF reads the headers from the aspnetcore HttpContext.Request.Headers property and populates an instance of WebHeaderCollection (to support equivalent of existing WCF api). There are 4 pseudo headers as part of the HTTP/2 spec which start with a colon. These are :method, :scheme, :authority, and :path. When trying to add any of these headers to a WebHeaderCollection, it throws an exception as they are invalid HTTP/1.1 headers. Other than these 4 headers, all other headers follow the HTTP/1.1 protocol.
WebHeaderCollection isn't protocol specific so should support adding of these 4 headers.
Configuration
Any .NET/.NET Core version
Regression?
No. This is a request to update WebHeaderCollection for the newer HTTP/2 protocol.
Other information
Other classes are updated as newer protocol versions are released, for example SslStream for TLS1.3 so this should