aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-03-12 12:26:57 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-03-12 12:26:57 +0000
commit6620bb58bcb869fd1f73cbd5a5843de5f9e13444 (patch)
treeb2b763d85290d09b088d665780fab256474dc63e /perllib/FixMyStreet/App.pm
parent67e2ea688a20e083e16a16ec45fd90fef13dc204 (diff)
Manually note secure-ness of site.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 4469ad1c9..ee5b11876 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -86,6 +86,13 @@ __PACKAGE__->config(
# Start the application
__PACKAGE__->setup();
+# Due to some current issues with proxyings, need to manually
+# tell the code we're secure if we are.
+after 'prepare_headers' => sub {
+ my $self = shift;
+ $self->req->secure( 1 ) if $self->config->{BASE_URL} eq 'https://www.zueriwieneu.ch';
+};
+
# set up DB handle for old code
FixMyStreet->configure_mysociety_dbhandle;