mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Some more "accept" parameters are added
This commit is contained in:
parent
173e72169b
commit
1fae0123ec
32 changed files with 111 additions and 60 deletions
|
@ -24,6 +24,7 @@ namespace Friendica\Util;
|
|||
use Friendica\Core\Logger;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Photo;
|
||||
use Friendica\Network\HTTPClient\Client\HttpClient;
|
||||
|
||||
/**
|
||||
* Image utilities
|
||||
|
@ -219,7 +220,7 @@ class Images
|
|||
}
|
||||
|
||||
if (empty($img_str)) {
|
||||
$img_str = DI::httpClient()->fetch($url, 4);
|
||||
$img_str = DI::httpClient()->fetch($url, 4, HttpClient::ACCEPT_IMAGE);
|
||||
}
|
||||
|
||||
if (!$img_str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue