Debugging a HTML compression defect in Mono/Apache (2)
This commit is contained in:
@@ -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:"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user