Removed index on response

The $curl->response seems to be all that is needed, the 'json' index was invalid when I tried it.
This commit is contained in:
Sandy Ganz
2018-10-10 09:05:22 -07:00
committed by GitHub
parent 0f790e77b6
commit ab17c4f9c4
+1 -1
View File
@@ -18,4 +18,4 @@ $curl = new Curl();
$curl->setDefaultJsonDecoder($assoc = true);
$curl->setHeader('Content-Type', 'application/json');
$curl->post('https://httpbin.org/post', $data);
var_dump($curl->response['json']);
var_dump($curl->response);