Fix for HTTPS bug

This commit is contained in:
Rick Falkvinge
2013-11-23 18:24:22 +00:00
parent ccb08415f0
commit a036fbfc43
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ namespace Swarmops.Pages.Security
// Check for SSL
if (!Request.IsSecureConnection || Request.Url.ToString().StartsWith("http://")) // Both are necessary, as some reverse proxies will https-ify an original nonsecure connection
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://localhost:") && Request.Url.ToString().StartsWith("http://activizr-"))
{