Debugging a HTML compression defect in Mono/Apache (2)

This commit is contained in:
Rick Falkvinge
2015-03-04 19:49:59 +01:00
parent b43e89c3bc
commit 70aebb178c
+5 -13
View File
@@ -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:"));
}
}