Skip to content

Commit ab17c4f

Browse files
authored
Removed index on response
The $curl->response seems to be all that is needed, the 'json' index was invalid when I tried it.
1 parent 0f790e7 commit ab17c4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/post_json_array_response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
$curl->setDefaultJsonDecoder($assoc = true);
1919
$curl->setHeader('Content-Type', 'application/json');
2020
$curl->post('https://httpbin.org/post', $data);
21-
var_dump($curl->response['json']);
21+
var_dump($curl->response);

0 commit comments

Comments
 (0)