[Catalyst] unexpected behavior of $c->request->secure and $c->request->base

seasprocket at gmail.com seasprocket at gmail.com
Fri Apr 24 21:10:19 GMT 2009


The expected behavior (for me) is that secure() returns true if the
connection is secured via SSL.

Looking at Engine::CGI, it appears that it only returns true if $ENV{HTTPS}
eq 'ON'  or if you're on Port 443.

Furthermore, if secure fails because you're on a non-standard port and HTTPS
is not set, then base returns the wrong base (http instead of https).

I am just really confused or is this desired behavior?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090424/655bd=
027/attachment.htm


More information about the Catalyst mailing list