From 70aebb178c0884b10082021959e52334bc8ae5c8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 4 Mar 2015 19:49:59 +0100 Subject: [PATCH] Debugging a HTML compression defect in Mono/Apache (2) --- Site5/Master-v5.master.cs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 80810f20..ddb058ce 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -93,20 +93,12 @@ namespace Swarmops 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 (CurrentUser.Identity > 0) + if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && + !Request.Url.ToString().StartsWith("http://dev-opentest.swarmops.com") && + !Request.Url.ToString().StartsWith("http://localhost:") && + !Request.Url.ToString().StartsWith ("http://swarmops-")) { - // if we're in identified mode (i.e. we're not operating as Open Ledgers or similar) - - 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-")) - { - Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); - - // Only force this if set to force it in database - // TODO: Make admin init task - } + Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); } }