summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class6
1 files changed, 2 insertions, 4 deletions
diff --git a/it_url.class b/it_url.class
index 2a9694c..11be048 100644
--- a/it_url.class
+++ b/it_url.class
@@ -375,10 +375,8 @@ function get_multi($p=null)
{
$p += array('retries' => 1);
- $p['headers'] = (array)$p['headers'] + array(
- 'User-Agent' => "Mozilla/4.0 (compatible; MSIE 7.0; ITools)",
- 'Accept-Language' => T_lang(),
- );
+ $url = new it_url;
+ $p['headers'] = (array)$p['headers'] + array_diff_key(self::_default_headers($url, $p), ['Host' => null]);
$opts = array(CURLOPT_FOLLOWLOCATION => true) + self::curl_opts($p);