X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FRequireSSL.pm;h=8bed9abae6e1e7396ece5838238decb8d1029418;hb=51ef6cb3778af34d0e4924294c3dd857b84147b1;hp=0b72c8a472e3f6d4e89c539f13ed9ce30252f8b6;hpb=11f9b04392eaffa371ed923fbe8599bd874a2b75;p=catagits%2FCatalyst-Plugin-RequireSSL.git diff --git a/lib/Catalyst/Plugin/RequireSSL.pm b/lib/Catalyst/Plugin/RequireSSL.pm index 0b72c8a..8bed9ab 100644 --- a/lib/Catalyst/Plugin/RequireSSL.pm +++ b/lib/Catalyst/Plugin/RequireSSL.pm @@ -64,8 +64,6 @@ sub setup { # disable the plugin when running under certain engines which don't # support SSL - # XXX: I didn't include Catalyst::Engine::Server here as it may be used as - # a backend in a proxy setup. if ( $c->engine =~ /Catalyst::Engine::HTTP/ ) { $c->config->{require_ssl}->{disabled} = 1; $c->log->warn( "RequireSSL: Disabling SSL redirection while running " @@ -103,10 +101,12 @@ sub _redirect_uri { } } $redir .= '?' . join( '&', @params ); - } - if($c->config->{require_ssl}->{'no_cache'}) { - $c->config->{require_ssl}->{$type} = undef; + } + + if ( $c->config->{require_ssl}->{no_cache} ) { + delete $c->config->{require_ssl}->{$type}; } + return $redir; } @@ -174,7 +174,7 @@ users will be redirected back to non-SSL mode as soon as possible. no_cache If you have a wildcard certificate you will need to set this option if you are -using multiple domains on one instance of catalyst. +using multiple domains on one instance of Catalyst. =head1 METHODS