From 50052bd46516105bcf7d7a00bebb70731c8431ab Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 25 Apr 2014 13:33:04 +0000 Subject: [PATCH] Disabling HTTPS-only mechanism for http://swarmops-* sites, assuming local test network --- Site5/Master-v5.master.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index 4c6f0d17..cc974908 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -64,7 +64,7 @@ namespace Swarmops if ((!Request.IsSecureConnection) || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection { - if (!Request.Url.ToString().StartsWith("http://dev.activizr.com/") && !Request.Url.ToString().StartsWith("http://sandbox.swarmops.com") && !Request.Url.ToString().StartsWith("http://localhost:") && !Request.Url.ToString().StartsWith("http://cryptdb")) + 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:"));