- Added logic to determine whether or not the site runs in HTTPS