]> git.mxchange.org Git - friendica.git/commitdiff
temporary fix until I figure out why the header is leaking
authorMike Macgirvin <mike@macgirvin.com>
Thu, 21 Oct 2010 23:26:25 +0000 (16:26 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Thu, 21 Oct 2010 23:26:25 +0000 (16:26 -0700)
boot.php

index 55c244e8278af4aabec8db55df21de974b6dea08..0a1e799ec0364cee6f15dbdb6c5b5bb78d2242d5 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -354,7 +354,7 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
        if(($redirects > 8) || (! $ch)) 
                return false;
 
-       curl_setopt($ch, CURLOPT_HEADER, true);
+       curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
 
        // by default we will allow self-signed certs
@@ -394,7 +394,7 @@ function fetch_url($url,$binary = false, &$redirects = 0) {
        $a->set_curl_headers($header);
 
        curl_close($ch);
-       return($body);
+       return($s);
 }}
 
 // post request to $url. $params is an array of post variables.
@@ -405,7 +405,7 @@ function post_url($url,$params, &$redirects = 0) {
        if(($redirects > 8) || (! $ch)) 
                return false;
 
-       curl_setopt($ch, CURLOPT_HEADER, true);
+       curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
        curl_setopt($ch, CURLOPT_POST,1);
        curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
@@ -441,7 +441,7 @@ function post_url($url,$params, &$redirects = 0) {
        $a->set_curl_headers($header);
 
        curl_close($ch);
-       return($body);
+       return($s);
 }}
 
 // random hash, 64 chars