From 8a5944e2b3c018fd55f19e4c8d1bdc885dc60143 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Wed, 2 Mar 2022 16:26:56 +0100 Subject: [PATCH] new style of http request --- retriever/retriever.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retriever/retriever.php b/retriever/retriever.php index 5e7a783e..cd8aacea 100644 --- a/retriever/retriever.php +++ b/retriever/retriever.php @@ -277,7 +277,7 @@ function retrieve_resource($resource) { $cookiejar = tempnam(get_temppath(), 'cookiejar-retriever-'); file_put_contents($cookiejar, $rule_data['cookiedata']); } - $fetch_result = DI::httpRequest()->fetchFull($resource['url'], $redirects, '', $cookiejar); + $fetch_result = DI::httpClient()->fetchFull($resource['url'], $redirects, '', $cookiejar); if (array_key_exists('storecookies', $rule_data) && $rule_data['storecookies']) { $retriever_rule['data']['cookiedata'] = file_get_contents($cookiejar); DBA::update('retriever_rule', ['data' => json_encode($retriever_rule['data'])], ['id' => intval($retriever_rule["id"])], $retriever_rule);