diff options
author | Christian Schneider | 2016-06-14 16:26:41 +0200 |
---|---|---|
committer | Christian Schneider | 2016-06-14 16:26:41 +0200 |
commit | 0c46fb484031f4bbfd69534138bb007e55d1e129 (patch) | |
tree | b0f6d1c26150610e9d780f9930b7e4e3bc421328 /it_url.class | |
parent | bfa681350aac276bcf3b42670bfd54fa89bd3650 (diff) | |
download | itools-0c46fb484031f4bbfd69534138bb007e55d1e129.tar.gz itools-0c46fb484031f4bbfd69534138bb007e55d1e129.tar.bz2 itools-0c46fb484031f4bbfd69534138bb007e55d1e129.zip |
Set header to inform subrequests about HTTPS on original request
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/it_url.class b/it_url.class index b35a59f..2a9694c 100644 --- a/it_url.class +++ b/it_url.class @@ -166,6 +166,7 @@ static function _default_headers($url, $p) 'User-Agent' => "Mozilla/5.0 (compatible; MSIE 9.0; ITools)", 'Accept-Language' => $p['headers']['Accept-Language'] ?: T_lang(), # 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'], ]; } |