Skip to content

WebHeaderCollection can't handle HTTP/2 psuedo headers #48009

@mconnew

Description

@mconnew

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions