Skip to content

Commit

Permalink
fix issue #68
Browse files Browse the repository at this point in the history
fix issue #68
  • Loading branch information
walkor committed Mar 25, 2016
1 parent 5e0f4f4 commit 2143bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Protocols/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function input($recv_buffer, TcpConnection $connection)
if (0 === strpos($recv_buffer, "POST")) {
// find Content-Length
$match = array();
if (preg_match("/\r\nContent-Length: ?(\d+)/", $header, $match)) {
if (preg_match("/\r\nContent-Length: ?(\d+)/i", $header, $match)) {
$content_length = $match[1];
return $content_length + strlen($header) + 4;
} else {
Expand Down

0 comments on commit 2143bf0

Please sign in to comment.