aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-21 16:26:25 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-21 16:26:25 -0700
commita266217a6d6376a2f43f66b9a9cc4aa5e4a8455a (patch)
treef1fc53eb36bed36f515a8a50f5c7ee9e911ff2e7 /boot.php
parenta8a88d253296629d265242f03651419ed2982ec7 (diff)
downloadvolse-hubzilla-a266217a6d6376a2f43f66b9a9cc4aa5e4a8455a.tar.gz
volse-hubzilla-a266217a6d6376a2f43f66b9a9cc4aa5e4a8455a.tar.bz2
volse-hubzilla-a266217a6d6376a2f43f66b9a9cc4aa5e4a8455a.zip
temporary fix until I figure out why the header is leaking
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/boot.php b/boot.php
index 55c244e82..0a1e799ec 100644
--- 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