Skip to content

header value surrounded by whitespace #632

Closed

Description

@dalf

httpx doesn't accept header value surrounded by whitespace, but other http2 implementations seems to accept them (nghttp2, browsers Firefox, Chrome).

Example:

async with httpx.Client(http2=True) as client:
	response = await client.get('https://a.searx.space/headervaluetest')

Result :

ProtocolError: Received header value surrounded by whitespace b'A value '

The nghttp2 implementation seems here:

I'm not sure if it should be declared as a bug or not.

Activity

  1. lovelydinosaur commented on Dec 12, 2019

    @lovelydinosaur
    Member

    Gotcha. It is a protocol error, but it’d be better if we could prefer robust behaviour over errors. This’ll need filing against the hyper-h2 package.

  2. lovelydinosaur commented on Dec 13, 2019

    @lovelydinosaur
    Member

    I believe #637 resolves this issue. If you're able to confirm that'd be fantastic.

  3. dalf commented on Dec 13, 2019

    @dalf
    Author

    @tomchristie Yes this solve the issue.

    Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    http/2Issues and PRs related to HTTP/2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions