Add User agent when OC does a request

This commit is contained in:
Brice Maron 2012-11-17 21:08:58 +00:00
parent ac3e962732
commit 71adad8817
1 changed files with 1 additions and 1 deletions

View File

@ -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);