Build machine is stupid again
This commit is contained in:
@@ -61,10 +61,15 @@ namespace Swarmops
|
||||
|
||||
// Check for SSL and force it
|
||||
|
||||
string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"];
|
||||
// Special case for CloudFlare deployments - there is a case where somebody will get their connections de-SSLed at the server
|
||||
|
||||
string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"];
|
||||
bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"") ? true : false);
|
||||
|
||||
// TODO: Same thing for Pound deployments
|
||||
|
||||
// Rewrite if applicable
|
||||
|
||||
if (Request.Url.ToString().StartsWith("http://") && !cloudFlareSsl) // only check client-side as many server sites de-SSL the connection before reaching the web server
|
||||
{
|
||||
if (!Request.Url.ToString().StartsWith("http://dev.swarmops.com/") && !Request.Url.ToString().StartsWith("http://sandbox.swarmops.com") && !Request.Url.ToString().StartsWith("http://localhost:") && !Request.Url.ToString().StartsWith("http://swarmops-"))
|
||||
|
||||
@@ -32,9 +32,14 @@ namespace Swarmops.Pages.Security
|
||||
|
||||
// Check for SSL and force it
|
||||
|
||||
string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"];
|
||||
// Special case for CloudFlare deployments - there is a case where somebody will get their connections de-SSLed at the server
|
||||
|
||||
bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"")? true: false);
|
||||
string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"];
|
||||
bool cloudFlareSsl = (cloudFlareVisitorScheme.Contains("\"scheme\":\"https\"") ? true : false);
|
||||
|
||||
// TODO: Same thing for Pound deployments
|
||||
|
||||
// Rewrite if applicable
|
||||
|
||||
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