diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-03-14 10:37:41 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-03-14 10:37:41 +0000 |
commit | 85ed45239a70f41afc8446cfc0f53acaffdeee3f (patch) | |
tree | 0a30d8db5d46628d37e3728eea15394245592c52 /perllib/FixMyStreet/App.pm | |
parent | 1d2bf7c4c9d00ac25b715a3797c9a7f5bd9c170c (diff) | |
parent | e7036ce558eebb9bde980aa1206cb4d67683ae3d (diff) |
Merge branch 'zurich'
Conflicts:
locale/FixMyStreet.po
locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po
locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po
locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-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; |