aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-16 15:57:47 -0700
committerFriendika <info@friendika.com>2011-07-16 15:57:47 -0700
commit2f0ab97fd75c269b77dd7164a6ab96394f1bc0ec (patch)
treeece217dcf74003b391ec545b37daac6898d0d339
parentfc3da2d599dc17dced6d68490bbe83a482e91659 (diff)
downloadvolse-hubzilla-2f0ab97fd75c269b77dd7164a6ab96394f1bc0ec.tar.gz
volse-hubzilla-2f0ab97fd75c269b77dd7164a6ab96394f1bc0ec.tar.bz2
volse-hubzilla-2f0ab97fd75c269b77dd7164a6ab96394f1bc0ec.zip
header fix post_url
-rw-r--r--boot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 634c2b926..6a622dbc0 100644
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
ini_set('pcre.backtrack_limit', 250000);
-define ( 'FRIENDIKA_VERSION', '2.2.1042' );
+define ( 'FRIENDIKA_VERSION', '2.2.1043' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1075 );
@@ -774,8 +774,8 @@ function post_url($url,$params, $headers = null, &$redirects = 0) {
}
}
}
-
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
+ if($headers)
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$check_cert = get_config('system','verifyssl');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, (($check_cert) ? true : false));