diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index f99f9b71..bda38841 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -63,7 +63,7 @@ namespace Swarmops string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"]; - bool cloudFlareSsl = (cloudFlareVisitorScheme == "\"scheme\":\"https\""? true: false); + bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"") ? true : false); if (Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server { diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index 5f2dfe5b..cc5f0ecb 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -34,7 +34,7 @@ namespace Swarmops.Pages.Security string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"]; - bool cloudFlareSsl = (cloudFlareVisitorScheme == "\"scheme\":\"https\""? true: false); + bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"")? true: false); if (Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server {