This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user