Fix base scheme

This commit is contained in:
Dennis Eichhorn 2019-03-09 16:28:09 +01:00
parent 80f58b9d24
commit bddeff5a0c

View File

@ -189,7 +189,7 @@ final class Http implements UriInterface
/** @noinspection PhpUndefinedConstantInspection */
return ((!empty($_SERVER['HTTPS'] ?? '') && ($_SERVER['HTTPS'] ?? '') !== 'off')
|| (($_SERVER['HTTP_X_FORWARDED_PROTO'] ?? '') === 'https')
|| (($_SERVER['HTTP_X_FORWARDED_SSL'] ?? '') === 'on'))
|| (($_SERVER['HTTP_X_FORWARDED_SSL'] ?? '') === 'on') ? 'https' : 'http')
. '://' . ($_SERVER['HTTP_HOST'] ?? ''). ($_SERVER['REQUEST_URI'] ?? '');
}