Skip to content

Commit

Permalink
crlf & lf compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hiend committed May 14, 2015
1 parent de1fddc commit 1dee2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResponseParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function parse($raw)

list($head, $body) = explode("\r\n\r\n", $raw, 2);

$lines = explode("\r\n", $head);
$lines = array_map('trim', explode("\n", $head));
$first_line = array_shift($lines);

if (!strpos($first_line, ' ')) {
Expand Down

0 comments on commit 1dee2a2

Please sign in to comment.