aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-14 15:34:00 -0700
committerFriendika <info@friendika.com>2011-07-14 15:34:00 -0700
commit2efb59e4396c711c52996296d6717ab05144d8cb (patch)
treec85ca0e5b64d6e39c79cc3c2d5fe1b58631f628f /boot.php
parented940288946801cabc6ed715444f23652e3023b1 (diff)
downloadvolse-hubzilla-2efb59e4396c711c52996296d6717ab05144d8cb.tar.gz
volse-hubzilla-2efb59e4396c711c52996296d6717ab05144d8cb.tar.bz2
volse-hubzilla-2efb59e4396c711c52996296d6717ab05144d8cb.zip
make lighttpd patch specific to lighttpd, intros don't work on apache
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/boot.php b/boot.php
index 699328201..2bd7830d7 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.1040' );
+define ( 'FRIENDIKA_VERSION', '2.2.1041' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1075 );
@@ -758,11 +758,13 @@ function post_url($url,$params, $headers = null, &$redirects = 0) {
$curl_time = intval(get_config('system','curl_timeout'));
curl_setopt($ch, CURLOPT_TIMEOUT, (($curl_time !== false) ? $curl_time : 60));
- if(!is_array($headers)) {
- $headers = array('Expect:');
- } else {
- if(!in_array('Expect:', $headers)) {
- array_push($headers, 'Expect:');
+ if(defined('LIGHTTPD')) {
+ if(!is_array($headers)) {
+ $headers = array('Expect:');
+ } else {
+ if(!in_array('Expect:', $headers)) {
+ array_push($headers, 'Expect:');
+ }
}
}