From: Andy Grundman Date: Mon, 7 Nov 2005 15:41:33 +0000 (+0000) Subject: RequireSSL, fixed to support other HTTP engines X-Git-Tag: v0.06~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-RequireSSL.git;a=commitdiff_plain;h=cae2ad7ffd14bb48c6adc08557ee585efa82b183 RequireSSL, fixed to support other HTTP engines --- diff --git a/Changes b/Changes index eee6551..9548c65 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Perl extension Catalyst::Plugin::RequireSSL +0.06 + - Fixed to support additional HTTP engines. + 0.05 2005-09-15 12:15:00 - Updated skipped tests to run if Catalyst >= 5.5. diff --git a/lib/Catalyst/Plugin/RequireSSL.pm b/lib/Catalyst/Plugin/RequireSSL.pm index c9bc5d8..194661a 100644 --- a/lib/Catalyst/Plugin/RequireSSL.pm +++ b/lib/Catalyst/Plugin/RequireSSL.pm @@ -4,7 +4,7 @@ use strict; use base qw/Class::Accessor::Fast/; use NEXT; -our $VERSION = '0.05'; +our $VERSION = '0.06'; __PACKAGE__->mk_accessors( qw/_require_ssl _ssl_strip_output/ ); @@ -66,7 +66,7 @@ sub setup { # 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 eq "Catalyst::Engine::HTTP" ) { + if ( $c->engine =~ /Catalyst::Engine::HTTP/ ) { $c->config->{require_ssl}->{disabled} = 1; $c->log->warn( "RequireSSL: Disabling SSL redirection while running " . "under " . $c->engine );