Skip to content

Commit

Permalink
Regex parse chunked buffer - fix chunk-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoan LERAT authored and etienneroudeix committed Mar 8, 2019
1 parent 0c7cc65 commit 1dcbf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rxnet/Httpd/RequestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function parseContentLength($data)
}
public function parseChunkedBuffer($data)
{
preg_match_all('/^([ABCDEF0123456789]{2,4})\r\n|\r\n([ABCDEF0123456789]{2,4})\r\n/i', $data, $matches);
preg_match_all('/^([ABCDEF0123456789]{1,8})\r\n|\r\n([ABCDEF0123456789]{1,8})\r\n/i', $data, $matches);
if (!$matches[0]) {
// No chunk limiter, add
return $data;
Expand Down

0 comments on commit 1dcbf61

Please sign in to comment.