summaryrefslogtreecommitdiffstats
path: root/lib/util.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-11-17 21:08:58 +0000
committerBrice Maron <brice@bmaron.net>2012-11-17 21:08:58 +0000
commit71adad8817ba869eb886c3dc731e3f4f9bbe2f65 (patch)
treef06b5e42c86268b426c67e47ef9678beb1a154f9 /lib/util.php
parentac3e9627323b37fe1613b6879d5757241abac3ef (diff)
downloadnextcloud-server-71adad8817ba869eb886c3dc731e3f4f9bbe2f65.tar.gz
nextcloud-server-71adad8817ba869eb886c3dc731e3f4f9bbe2f65.zip
Add User agent when OC does a request
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 725278a39e6..09b59a2353b 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -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);