Skip to content

Commit

Permalink
Merge pull request #4069 from pascalseeland/fix/wrong-header-check
Browse files Browse the repository at this point in the history
Fix issue that headers must contain 2 parts
  • Loading branch information
smeyer-ilias authored Feb 22, 2022
2 parents a5d2cdc + e4d7fa4 commit 8456c5b
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 8456c5b

Please sign in to comment.