-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Add tests to test case sensitivity for ChunkedDecoder #150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
tests/ChunkedDecoderTest.php
Outdated
$data = ''; | ||
for ($i = 0; $i < $integer; $i++) { | ||
$data .= '1'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str_repeat()
9b1ca03
to
38e741f
Compare
Ping @clue . Used |
tests/ChunkedDecoderTest.php
Outdated
$this->input->emit('data', array("a\r\n0123456790\r\n")); | ||
} | ||
|
||
public function testCaseInsensitiyHexValuesInHeaderWillBeHandled() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insensitiy
typo :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Changed name of the test.
38e741f
to
9bfd088
Compare
Thanks to @mdrost who found a bug with case-insensitve chunk headers: reactphp/http-client#77
Luckily the Server is not affected. I added just some tests to verify this behavior.