Commit 427dbf37 authored by Bas de Nooijer's avatar Bas de Nooijer Committed by Dorian Villet

Fix for issue #181

parent f7241747
...@@ -110,7 +110,7 @@ class Curl extends Configurable implements AdapterInterface ...@@ -110,7 +110,7 @@ class Curl extends Configurable implements AdapterInterface
public function getResponse($handle, $httpResponse) public function getResponse($handle, $httpResponse)
{ {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
if ($httpResponse !== false) { if ($httpResponse !== false && $httpResponse !== null) {
$data = $httpResponse; $data = $httpResponse;
$info = curl_getinfo($handle); $info = curl_getinfo($handle);
$headers = array(); $headers = array();
......
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