Skip to content

Commit

Permalink
Merge pull request #295 from red-crown/master
Browse files Browse the repository at this point in the history
Fix multiple header definitions in ParseStringHeaders method. Issue #294
  • Loading branch information
ianbarber committed Sep 8, 2014
2 parents e00f70d + 6cd719a commit c05d454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Google/IO/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private function parseStringHeaders($rawHeaders)
if ($headerLine && strpos($headerLine, ':') !== false) {
list($header, $value) = explode(': ', $headerLine, 2);
$header = strtolower($header);
if (isset($responseHeaders[$header])) {
if (isset($headers[$header])) {
$headers[$header] .= "\n" . $value;
} else {
$headers[$header] = $value;
Expand Down

0 comments on commit c05d454

Please sign in to comment.