From 0503cddd35aee2ad83f04d397ce51d965e4ac829 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 19 Mar 2008 16:31:02 +0000 Subject: [PATCH] add the ability to turn off forced-https git-svn-id: svn://svn.open-ils.org/ILS/trunk@9086 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm b/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm index c2a79e4f3b..cc85633bac 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm @@ -15,10 +15,12 @@ use OpenSRF::System; # set the bootstrap config and template include directory when # this module is loaded my $bootstrap; +my $ssl_off; sub import { my $self = shift; $bootstrap = shift; + $ssl_off = shift; } @@ -45,7 +47,7 @@ sub handler { my $url = $cgi->url; # push everyone to the secure site - if ($url =~ /^http:/o) { + if (!$ssl_off && $url =~ /^http:/o) { $url =~ s/^http:/https:/o; print "Location: $url\n\n"; return Apache2::Const::OK; -- 2.43.2