Skip to content

Fix parse error, accept header values separated without space #46

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

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

hlovdal
Copy link
Contributor

@hlovdal hlovdal commented May 24, 2017

The following example failed:

$ socat - TCP:localhost:1234,crnl
GET / HTTP/1.1
Connection: Upgrade,Keep-Alive
Upgrade: websocket
Sec-WebSocket-Key: hq0S1hpdldRhTHVwXBDPvg==
Sec-WebSocket-Version: 13
Host: localhost:1234

HTTP/1.1 400 Bad Request

$

but would have worked as expected with

Connection: Upgrade, Keep-Alive

The following example failed:

    $ socat - TCP:localhost:1234,crnl
    GET / HTTP/1.1
    Connection: Upgrade,Keep-Alive
    Upgrade: websocket
    Sec-WebSocket-Key: hq0S1hpdldRhTHVwXBDPvg==
    Sec-WebSocket-Version: 13
    Host: localhost:1234

    HTTP/1.1 400 Bad Request

    $

but would have worked as expected with

    Connection: Upgrade, Keep-Alive
@hlovdal
Copy link
Contributor Author

hlovdal commented Nov 10, 2018

@sitegui Is there anything missing before you can merge this?

@sitegui
Copy link
Owner

sitegui commented Nov 15, 2018

Hello @hlovdal , sorry for missing your PR, it got lost in my inbox.

No, it's perfect! Thanks for your contribution

@sitegui sitegui merged commit 7dcd5e0 into sitegui:master Nov 15, 2018
@hlovdal hlovdal deleted the fix-header-split branch November 15, 2018 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants