From: friendica Date: Sat, 19 Nov 2011 06:03:49 +0000 (-0800) Subject: update user-agent string for remote http requests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6893df991edfe971871a5db45055b40b871a7a4f;p=friendica.git update user-agent string for remote http requests --- diff --git a/include/network.php b/include/network.php index e89eb94da2..78ed240743 100644 --- a/include/network.php +++ b/include/network.php @@ -22,7 +22,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_ } @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); - @curl_setopt($ch, CURLOPT_USERAGENT, "Friendika"); + @curl_setopt($ch, CURLOPT_USERAGENT, "Friendica"); if(intval($timeout)) { @@ -105,7 +105,7 @@ function post_url($url,$params, $headers = null, &$redirects = 0, $timeout = 0) curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$params); - curl_setopt($ch, CURLOPT_USERAGENT, "Friendika"); + curl_setopt($ch, CURLOPT_USERAGENT, "Friendica"); if(intval($timeout)) { curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);