X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FCGI%2FBase.pm;h=6e19c608b5229b50764bdaf124f92d17b31aa4a1;hb=21465c884872c1ec8c30acd72796445f9eaacb31;hp=8db3fe6be2346949d71eba6015ae59a316405f46;hpb=66294129a6520edc031aa7a43fc9bdfce669af15;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/CGI/Base.pm b/lib/Catalyst/Engine/CGI/Base.pm index 8db3fe6..6e19c60 100644 --- a/lib/Catalyst/Engine/CGI/Base.pm +++ b/lib/Catalyst/Engine/CGI/Base.pm @@ -71,7 +71,11 @@ sub prepare_connection { $c->request->protocol( $ENV{SERVER_PROTOCOL} ); $c->request->user( $ENV{REMOTE_USER} ); - if ( $ENV{HTTPS} || $ENV{SERVER_PORT} == 443 ) { + if ( $ENV{HTTPS} && uc( $ENV{HTTPS} ) eq 'ON' ) { + $c->request->secure(1); + } + + if ( $ENV{SERVER_PORT} == 443 ) { $c->request->secure(1); } } @@ -136,7 +140,7 @@ sub prepare_path { =cut -sub run { shift->handler } +sub run { shift->handler(@_) } =back