mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #503 from eMerzh/add_ua_request
Add User agent when OC does a request
This commit is contained in:
commit
87c45b1651
1 changed files with 1 additions and 1 deletions
|
|
@ -688,7 +688,7 @@ class OC_Util {
|
|||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, "ownCloud Server Crawler");
|
||||
$data = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue