Skip to content

Commit

Permalink
bugfix for issue solariumphp#26
Browse files Browse the repository at this point in the history
  • Loading branch information
basdenooijer committed Jul 20, 2011
1 parent 200e606 commit e8641b5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions library/Solarium/Client/Adapter/ZendHttp.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,7 @@ protected function _handleRequest($request)
return true;
} else {
$data = $response->getBody();
$type = $response->getHeader('Content-Type');
switch ($type) {
case 'text/plain; charset=utf-8':
return $this->_jsonDecode($data);
break;
default:
throw new Solarium_Exception(
'Unknown Content-Type in ZendHttp adapter: ' . $type
);
break;
}
return $this->_jsonDecode($data);
}

}
Expand Down

0 comments on commit e8641b5

Please sign in to comment.