Backported [1134] SSL requests in tests to trunk
Andy Grundman [Thu, 15 Sep 2005 16:00:56 +0000 (16:00 +0000)]
lib/Catalyst/Engine/HTTP/Base.pm

index ec0f2d5..ba512f1 100644 (file)
@@ -75,6 +75,7 @@ sub prepare_connection {
     $c->request->address( $c->http->address );
     $c->request->hostname( $c->http->hostname );
     $c->request->protocol( $c->http->request->protocol );
+    $c->request->secure(1) if ( $c->http->request->uri->port == 443 );
 }
 
 =item $c->prepare_headers