From 41e97ea93fa8769dcd3c0256837633be6435b4f9 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 15 Jun 2020 15:08:05 +0200 Subject: Use something resembling Edge instead of MSIE 9 to ITools requests --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], -- cgit v1.2.3