From 076e1a0c51f194db1e01f8cdf01f3ad630ef15e4 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sun, 8 May 2022 14:46:06 +0100 Subject: [PATCH] correct use of fetchFull --- retriever/retriever.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retriever/retriever.php b/retriever/retriever.php index 210c6542..42462bcb 100644 --- a/retriever/retriever.php +++ b/retriever/retriever.php @@ -279,7 +279,7 @@ function retrieve_resource($resource) { $cookiejar = tempnam(System::getTempPath(), 'cookiejar-retriever-'); file_put_contents($cookiejar, $rule_data['cookiedata']); } - $fetch_result = DI::httpClient()->fetchFull($resource['url'], $redirects, '', $cookiejar); + $fetch_result = DI::httpClient()->fetchFull($resource['url'], $redirects, 0, $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);