[open-ils-commits] r9086 - trunk/Open-ILS/src/perlmods/OpenILS/WWW
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 19 13:05:23 EDT 2008
Author: miker
Date: 2008-03-19 12:31:02 -0400 (Wed, 19 Mar 2008)
New Revision: 9086
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm
Log:
add the ability to turn off forced-https
Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm 2008-03-19 15:51:51 UTC (rev 9085)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/Proxy.pm 2008-03-19 16:31:02 UTC (rev 9086)
@@ -15,10 +15,12 @@
# 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 @@
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;
More information about the open-ils-commits
mailing list