summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2020-06-15 15:08:05 +0200
committerChristian Schneider2020-06-15 15:08:05 +0200
commit41e97ea93fa8769dcd3c0256837633be6435b4f9 (patch)
tree38514d01d1be4eaa6fa8bea27c208735698c5a67 /it_url.class
parent7d84569b53e05f19b6d2624245a4476ba8a03c83 (diff)
downloaditools-41e97ea93fa8769dcd3c0256837633be6435b4f9.tar.gz
itools-41e97ea93fa8769dcd3c0256837633be6435b4f9.tar.bz2
itools-41e97ea93fa8769dcd3c0256837633be6435b4f9.zip
Use something resembling Edge instead of MSIE 9 to ITools requests
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index d02939c..6e415ba 100644
--- a/it_url.class
+++ b/it_url.class
@@ -173,7 +173,7 @@ static function _default_headers($url, $p)
$headers = [
'Host' => $url->realhostname . $url->explicitport,
- 'User-Agent' => "Mozilla/5.0 (compatible; MSIE 9.0; ITools)",
+ 'User-Agent' => "Mozilla/5.0 (compatible; ITools; Chrome/70.0.3538.102 Safari/537.36 Edge/18.19582)",
'Accept-Language' => $p['headers']['Accept-Language'] ?: T_defaultlang(), # can prevent loading of it_text
'Referer' => it::match('([-\w]+\.\w+)$', $url->hostname) == it::match('([-\w]+\.\w+)$', $_SERVER['HTTP_HOST']) ? it_url::absolute(U($_GET)) : null,
'X-Ultra-Https' => $_SERVER['HTTPS'],