Honor the request scheme when redirecting the user
This commit is contained in:
parent
2125055409
commit
ead51deca6
|
@ -27,7 +27,7 @@ function test_exist($file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function http_redirect($path) {
|
function http_redirect($path) {
|
||||||
header('Location: http://'.$_SERVER['HTTP_HOST'].$path);
|
header('Location: '.$_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$path);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue