Fix issue with the HTTPS redirect
This commit is contained in:
parent
c613271c48
commit
57bb266635
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class AntRouting
|
||||||
$isHttps = !empty($scheme) && (strcasecmp('on', $scheme) == 0 || strcasecmp('https', $scheme) == 0);
|
$isHttps = !empty($scheme) && (strcasecmp('on', $scheme) == 0 || strcasecmp('https', $scheme) == 0);
|
||||||
|
|
||||||
if (!$isHttps) {
|
if (!$isHttps) {
|
||||||
$url = 'https://' . AntTools::repairURL($this->baseUrl . '/' . $this->requestUri);
|
$url = 'https://' . AntTools::repairURL($this->baseUrl . $this->requestUri);
|
||||||
header('Location: ' . $url);
|
header('Location: ' . $url);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue