Skip to content

HTTP2 should strip connection headers before sending #1551

Closed
@seanmonstar

Description

@seanmonstar

Connection-specific headers are forbidden in HTTP2, as that information has been moved into frame types of the h2 protocol. hyper should strip those headers before sending a request or response over HTTP2.

Steps to fix

  • Update proto::h2::strip_connection_headers to inspect the value of the CONNECTION header, and remove all headers it references. See this code for how.
  • Also remove other headers that h2 has determined are "connection" headers, such as those in this code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-http2Area: HTTP/2 specific.C-featureCategory: feature. This is adding a new feature.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions