Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3)

This commit is contained in:
Philipp
2020-10-10 21:07:17 +02:00
parent b3e5621d37
commit a6fc9cd32e
16 changed files with 31 additions and 40 deletions

View File

@@ -449,7 +449,7 @@ class HTTPSignature
$curl_opts = $opts;
$curl_opts['header'] = $headers;
$curlResult = DI::httpRequest()->get($request, false, $curl_opts);
$curlResult = DI::httpRequest()->get($request, $curl_opts);
$return_code = $curlResult->getReturnCode();
Logger::log('Fetched for user ' . $uid . ' from ' . $request . ' returned ' . $return_code, Logger::DEBUG);

View File

@@ -184,7 +184,7 @@ class Images
return $data;
}
$img_str = DI::httpRequest()->fetch($url, true, 4);
$img_str = DI::httpRequest()->fetch($url, 4);
if (!$img_str) {
return [];