]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add User agent when OC does a request
authorBrice Maron <brice@bmaron.net>
Sat, 17 Nov 2012 21:08:58 +0000 (21:08 +0000)
committerBrice Maron <brice@bmaron.net>
Sat, 17 Nov 2012 21:08:58 +0000 (21:08 +0000)
lib/util.php

index 725278a39e65b0de63fd64358e19d84c39e2ce31..09b59a2353bddb3a1cd05c73c1f49726ce5cc371 100755 (executable)
@@ -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);