Commit e8641b5f authored by Bas de Nooijer's avatar Bas de Nooijer

bugfix for issue #26

parent 200e6067
......@@ -167,17 +167,7 @@ class Solarium_Client_Adapter_ZendHttp extends Solarium_Client_Adapter_Http
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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment