Skip to content

Connection Header case insensitivity #635

Closed
@mikedilger

Description

@mikedilger

http://tools.ietf.org/html/rfc7230#section-6.1:

... "Connection options are case-insensitive." ...

I noticed that Apache Bench sends "Keep-Alive" and hyper misinterprets it

DEBUG:hyper::server::request: Headers { Connection: Keep-Alive, Host: 192.168.66.62:8881, Accept: */*, User-Agent: ApacheBench/2.3, }
TRACE:hyper::http: should_keep_alive( Http10, Some(Connection([ConnectionHeader(UniCase("Keep-Alive"))])) )

I think this may also apply to most other headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-headersArea: headers.C-bugCategory: bug. Something is wrong. This is bad!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