adaptation for 2024.03

This commit is contained in:
Matthew Exon 2024-04-03 18:32:58 +08:00
parent e0226981a1
commit 26e95978b2

View file

@ -308,7 +308,7 @@ function retrieve_resource(array $resource) {
DBA::update('retriever_rule', ['data' => json_encode($retriever_rule['data'])], ['id' => intval($retriever_rule["id"])], $retriever_rule);
unlink($cookiejar);
}
$resource['data'] = $fetch_result->getBody();
$resource['data'] = $fetch_result->getBodyString();
$resource['http-code'] = $fetch_result->getReturnCode();
$resource['type'] = $fetch_result->getContentType();
$resource['redirect-url'] = $fetch_result->getRedirectUrl();