summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-11-17 14:22:37 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2012-11-17 14:22:37 -0800
commit87c45b1651ddd94b99ba2831070bfaabf52d316e (patch)
tree055d33931b8da5908857198cf1e9a1b0efa54fdf
parentac3e9627323b37fe1613b6879d5757241abac3ef (diff)
parent4337e0fb99060cae43f7d44f3b4a5822701c2b25 (diff)
downloadnextcloud-server-87c45b1651ddd94b99ba2831070bfaabf52d316e.tar.gz
nextcloud-server-87c45b1651ddd94b99ba2831070bfaabf52d316e.zip
Merge pull request #503 from eMerzh/add_ua_request
Add User agent when OC does a request
-rwxr-xr-xlib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 725278a39e6..dd3c3721a68 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);