Skip to content

Conversation

@DangerLifter
Copy link

@legionth
Copy link

Hey thank you for your PR 👍

While I see your problem, I am pretty sure that a 2a \r\n... or similar is not valid HTTP, according to the HTTP RFC.

Any idea how other clients handle this behavior?
Could you also provide some unit tests?

@DangerLifter
Copy link
Author

DangerLifter commented Dec 12, 2017

Any idea how other clients handle this behavior?

Sorry, know nothing here.

Could you also provide some unit tests?

Done.

@clue clue added the bug label Jan 16, 2018
@clue clue added this to the v0.5.7 milestone Jan 16, 2018
@clue clue changed the title * try to fix issue with chunk length header error Ignore excessive whitespace in chunk header Jan 16, 2018
Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DangerLifter Thank you for looking into this and filing this PR! 👍

I've found some minor issues below, I'm happy to get this in once this PR is updated :shipit:

],
'extra-space-in-length-chunk' => [
["04 \r\nWiki\r\n5\r\npedia\r\nE\r\n in\r\n\r\nchunks.\r\n0\r\n\r\n"],
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor CS issue.

Also, can you add a test a chunk header that consists of a single space " \r\n" will be rejected?

@clue clue removed this from the v0.5.7 milestone Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants