Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Dec 5, 2014
1 parent 361851b commit 6c08a9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/Http/lib/Horde/Http/Response/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ protected function _parseHeaders($headers)

if ($tmp = $this->_headers[$headerName]) {
if (!is_array($tmp)) {
$this->_headers[$headerName] = array($tmp);
$tmp = array($tmp);
}

$this->_headers[$headerName][] = $headerValue;
} else {
$this->_headers[$headerName] = $headerValue;
$tmp[] = $headerValue;
$headerValue = $tmp;
}

$this->_headers[$headerName] = $headerValue;
$lastHeader = $headerName;
} elseif (preg_match("|^\s+(.+)$|", $headerLine, $m) &&
!is_null($lastHeader)) {
Expand Down

0 comments on commit 6c08a9f

Please sign in to comment.