Introduce "accept_header" as specific argument to the http client
This commit is contained in:
@@ -220,7 +220,7 @@ class Images
|
||||
}
|
||||
|
||||
if (empty($img_str)) {
|
||||
$img_str = DI::httpClient()->fetch($url, 4, HttpClientAccept::IMAGE);
|
||||
$img_str = DI::httpClient()->fetch($url, HttpClientAccept::IMAGE, 4);
|
||||
}
|
||||
|
||||
if (!$img_str) {
|
||||
|
||||
Reference in New Issue
Block a user