Skip to content

Commit

Permalink
Fix issue that headers must contain 2 parts
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalseeland committed Feb 22, 2022
1 parent ea6f9ff commit e4d7fa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private function parseHeader($handle, string $header) : int
{
$len = strlen($header);
$header = explode(':', $header, 2);
if (count($header) < 2) { // ignore invalid headers
if (count($header) == 2) { // ignore invalid headers
$this->header_arr[strtolower(trim($header[0]))] = trim($header[1]);
}
return $len;
Expand Down

0 comments on commit e4d7fa4

Please sign in to comment.