From 71adad8817ba869eb886c3dc731e3f4f9bbe2f65 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Sat, 17 Nov 2012 21:08:58 +0000 Subject: [PATCH] Add User agent when OC does a request --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5