Skip to content

Option to preserve header's title case #2313

Closed
@zonyitoo

Description

@zonyitoo

I am building a HTTP proxy with hyper, and I realize that headers are all converted to lower case for HTTP/1.x.

There was an issue about adding http1_title_case_headers for clients: #1492 , but we don't have a way to preserve the response headers' title case from remote servers.

Some client applications are expecting to receive header with name that is exactly the same as the server returns, for example:

  • Nintendo Switch's connection checking will sent a GET request to http://ctest.cdn.nintendo.net/ and expecting a response with header X-Organization: Nintendo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-http1Area: HTTP/1 specific.C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions