Merge pull request #503 from eMerzh/add_ua_request
Add User agent when OC does a request
This commit is contained in:
commit
87c45b1651
|
@ -688,7 +688,7 @@ class OC_Util {
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
curl_setopt($curl, CURLOPT_URL, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_USERAGENT, "ownCloud Server Crawler");
|
||||||
$data = curl_exec($curl);
|
$data = curl_exec($curl);
|
||||||
curl_close($curl);
|
curl_close($curl);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue