mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 10:47:15 +02:00
Add User agent when OC does a request
This commit is contained in:
parent
ac3e962732
commit
71adad8817
@ -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 New Issue
Block a user