X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnetwork.php;h=941ef5e1b9db7482555ae4c07a532c5dd0e1c900;hb=c2b49f25889fcb77048e65d439ba8c483c529d48;hp=400c1386be69a2779dd59894962037460bab79ee;hpb=fdee002f73bce767c364b58daafeccc8eff5927e;p=friendica.git diff --git a/include/network.php b/include/network.php index 400c1386be..941ef5e1b9 100644 --- a/include/network.php +++ b/include/network.php @@ -17,8 +17,10 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_ @curl_setopt($ch, CURLOPT_HEADER, true); - @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); - @curl_setopt($ch, CURLOPT_MAXREDIRS, 5); + +// These settings aren't needed. We're following the location already. +// @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); +// @curl_setopt($ch, CURLOPT_MAXREDIRS, 5); if (!is_null($accept_content)){ curl_setopt($ch,CURLOPT_HTTPHEADER, array (