diff options
author | Brice Maron <brice@bmaron.net> | 2012-11-17 21:08:58 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-11-17 21:08:58 +0000 |
commit | 71adad8817ba869eb886c3dc731e3f4f9bbe2f65 (patch) | |
tree | f06b5e42c86268b426c67e47ef9678beb1a154f9 /lib/util.php | |
parent | ac3e9627323b37fe1613b6879d5757241abac3ef (diff) | |
download | nextcloud-server-71adad8817ba869eb886c3dc731e3f4f9bbe2f65.tar.gz nextcloud-server-71adad8817ba869eb886c3dc731e3f4f9bbe2f65.zip |
Add User agent when OC does a request
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 2 |
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); |