mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 16:15:16 +00:00
Merge branch 'master' into trinidad
This commit is contained in:
commit
2dca165f9b
1 changed files with 2 additions and 0 deletions
|
@ -472,6 +472,8 @@ function script_path() {
|
||||||
$scheme = 'https';
|
$scheme = 'https';
|
||||||
elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443))
|
elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443))
|
||||||
$scheme = 'https';
|
$scheme = 'https';
|
||||||
|
elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')
|
||||||
|
$scheme = 'https';
|
||||||
else
|
else
|
||||||
$scheme = 'http';
|
$scheme = 'http';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue