diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-03-12 12:26:57 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-03-12 12:26:57 +0000 |
commit | 6620bb58bcb869fd1f73cbd5a5843de5f9e13444 (patch) | |
tree | b2b763d85290d09b088d665780fab256474dc63e | |
parent | 67e2ea688a20e083e16a16ec45fd90fef13dc204 (diff) |
Manually note secure-ness of site.
-rw-r--r-- | perllib/FixMyStreet/App.pm | 7 |
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; |