diff --git a/src/Model/Storage/ExternalResource.php b/src/Model/Storage/ExternalResource.php index 5c78e6d546..0e758c7062 100644 --- a/src/Model/Storage/ExternalResource.php +++ b/src/Model/Storage/ExternalResource.php @@ -58,7 +58,7 @@ class ExternalResource implements IStorage return ""; } - $fetchResult = HTTPSignature::fetchRaw($data->url, $data->uid); + $fetchResult = HTTPSignature::fetchRaw($data->url, $data->uid, ['accept_content' => '']); if ($fetchResult->isSuccess()) { return $fetchResult->getBody(); } else { diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index b1683e8f5b..04fe00db12 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -75,7 +75,7 @@ class Proxy extends BaseModule $request['url'] = str_replace(' ', '+', $request['url']); // Fetch the content with the local user - $fetchResult = HTTPSignature::fetchRaw($request['url'], local_user(), ['timeout' => 10]); + $fetchResult = HTTPSignature::fetchRaw($request['url'], local_user(), ['accept_content' => '', 'timeout' => 10]); $img_str = $fetchResult->getBody(); if (!$fetchResult->isSuccess() || empty($img_str)) {