Skip to content

Commit

Permalink
Fixes zendframework#218 for our own fork.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdeeming committed Sep 7, 2018
1 parent 1b9ecd2 commit 8d75835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function fromString($string, $EOL = self::EOL)

// Empty line indicates end of headers
// EXCEPT if there are more lines, in which case, there's a possible error condition
if (preg_match('/^\s*$/', $line)) {
if ($line === '') {
$emptyLine += 1;
if ($emptyLine > 2) {
throw new Exception\RuntimeException('Malformed header detected');
Expand Down

0 comments on commit 8d75835

Please sign in to comment.