This commit is contained in:
Rudis Muiznieks 2023-09-25 16:26:14 -05:00
parent d52cec6f0a
commit 8f2a5943ee
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class FreshExtension_kagiSummarizer_Controller extends Minz_ActionController {
$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE); $header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
$response_body = substr($response, $header_size); $response_body = substr($response, $header_size);
return json_encode(array( echo json_encode(array(
'response' => json_decode($response_body), 'response' => json_decode($response_body),
'status' => curl_getinfo($curl, CURLINFO_HTTP_CODE) 'status' => curl_getinfo($curl, CURLINFO_HTTP_CODE)
)); ));