make lighttpd patch specific to lighttpd, intros don't work on apache
This commit is contained in:
parent
ed94028894
commit
2efb59e439
4
boot.php
4
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,6 +758,7 @@ 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(defined('LIGHTTPD')) {
|
||||
if(!is_array($headers)) {
|
||||
$headers = array('Expect:');
|
||||
} else {
|
||||
|
@ -765,6 +766,7 @@ function post_url($url,$params, $headers = null, &$redirects = 0) {
|
|||
array_push($headers, 'Expect:');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
|
||||
|
|
Loading…
Reference in a new issue