mirror of
https://codeberg.org/reflect/reflect-client-php.git
synced 2025-09-13 17:43:42 +02:00
fix: http resp. as assoc array (#5)
This commit is contained in:
parent
1aae608011
commit
cde845d61b
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@
|
||||||
$resp_code = (int) explode(" ", $http_response_header[0])[1];
|
$resp_code = (int) explode(" ", $http_response_header[0])[1];
|
||||||
|
|
||||||
// Return response as [<http_status_code>, <resp_body_assoc_array>]
|
// Return response as [<http_status_code>, <resp_body_assoc_array>]
|
||||||
return [$resp_code, json_decode($resp)];
|
return [$resp_code, json_decode($resp, true)];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make request and return response over socket
|
// Make request and return response over socket
|
||||||
|
|
Loading…
Add table
Reference in a new issue