Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user