Skip to content
Snippets Groups Projects
Commit 179b048f authored by Tai Kedzierski's avatar Tai Kedzierski
Browse files

Removed redundant truth check.

parent 53703715
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ class Utils {
$serverPort = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : '';
$scheme = (
(defined('FORCE_HTTPS') && FORCE_HTTPS === true) ||
(defined('FORCE_HTTPS') && FORCE_HTTPS ) ||
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ||
(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
) ? 'https' : 'http';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment