]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Proxy.php
Remove direct calls to App->user
[friendica.git] / src / Module / Proxy.php
index b1683e8f5b4082e4c76e129c9e63fa0747ddc4bc..04fe00db1248a8ed07e726c525b256f9b75986a7 100644 (file)
@@ -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)) {