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