Implemented detach_on_redirect config option.
[catagits/Catalyst-Plugin-RequireSSL.git] / t / lib / TestApp / Controller / SSL.pm
index 4d9ebf7..6dae48f 100644 (file)
@@ -25,4 +25,15 @@ sub maybe_secured : Local {
     $c->res->output( 'Maybe secured' );
 }
 
+sub test_detach : Local {
+    my ( $self, $c ) = @_;
+    
+    $c->require_ssl;
+
+    $c->res->redirect('http://www.mydomain.com/redirect_from_the_action');
+    
+    $c->res->output( 'Test detach' );
+}
+
+
 1;