RequireSSL, fixed to support other HTTP engines
Andy Grundman [Mon, 7 Nov 2005 15:41:33 +0000 (15:41 +0000)]
Changes
lib/Catalyst/Plugin/RequireSSL.pm

diff --git a/Changes b/Changes
index eee6551..9548c65 100644 (file)
--- 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.
 
index c9bc5d8..194661a 100644 (file)
@@ -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 );