Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header parsing regression in 3.4 w/ empty headers #3219

Closed
hynek opened this issue Aug 27, 2018 · 4 comments
Closed

Header parsing regression in 3.4 w/ empty headers #3219

hynek opened this issue Aug 27, 2018 · 4 comments

Comments

@hynek
Copy link
Contributor

hynek commented Aug 27, 2018

Long story short

A request containing

finagle-http-retryable-request:
X-TX-ID: abc

will parse to:

'finagle-http-retryable-requestX-TX-ID': 'abc'

Expected behaviour

Not squishing them together like 3.3. :)

Actual behaviour

Squishes together.

Steps to reproduce

Start a simple aiohttp server, then:

nc localhost 5100
POST / HTTP/1.1
Foo:
Bar: x

gives you: <CIMultiDictProxy('FooBar': 'x')>

It doesn’t matter, whether there’s a space behind Foo: or not.

Your environment

aiohttp 3.4.0. 3.3 works fine.

@webknjaz
Copy link
Member

Hi @hynek!

Could you please try testing git version (build from source), but downgrade a git submodule in vendor/http-parser about 10 commits back?

@webknjaz
Copy link
Member

Oh, it seems @popravich is already working on a fix @ #3218

@asvetlov
Copy link
Member

Fixed by #3218

@lock
Copy link

lock bot commented Oct 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.
If you feel like there's important points made in this discussion, please include those exceprts into that [new issue].
[new issue]: https://github.com/aio-libs/aiohttp/issues/new

@lock lock bot added the outdated label Oct 28, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants