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

Add tests to test case sensitivity for ChunkedDecoder #150

Merged
merged 1 commit into from
Mar 22, 2017

Conversation

legionth
Copy link
Contributor

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.

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

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

👍

@clue clue added this to the v0.7.0 milestone Mar 20, 2017
$data = '';
for ($i = 0; $i < $integer; $i++) {
$data .= '1';
}
Copy link
Member

Choose a reason for hiding this comment

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

str_repeat()

@legionth legionth force-pushed the test-case-sensitivity branch from 9b1ca03 to 38e741f Compare March 20, 2017 22:21
@legionth
Copy link
Contributor Author

Ping @clue . Used str_repeat have a look.

$this->input->emit('data', array("a\r\n0123456790\r\n"));
}

public function testCaseInsensitiyHexValuesInHeaderWillBeHandled()
Copy link

Choose a reason for hiding this comment

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

Insensitiy typo :P

Copy link
Contributor Author

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.

@legionth legionth force-pushed the test-case-sensitivity branch from 38e741f to 9bfd088 Compare March 21, 2017 02:36
@clue clue merged commit 90b942a into reactphp:master Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants