diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-17 14:22:37 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-11-17 14:22:37 -0800 |
commit | 87c45b1651ddd94b99ba2831070bfaabf52d316e (patch) | |
tree | 055d33931b8da5908857198cf1e9a1b0efa54fdf | |
parent | ac3e9627323b37fe1613b6879d5757241abac3ef (diff) | |
parent | 4337e0fb99060cae43f7d44f3b4a5822701c2b25 (diff) | |
download | nextcloud-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-x | lib/util.php | 2 |
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); |