[Catalyst] Force https in generated URIs
Tomas Doran
bobtfish at bobtfish.net
Thu Aug 4 20:45:31 GMT 2011
On 4 Aug 2011, at 16:57, Larry Leszczynski wrote:
> Hi Tobias -
>
>> Therefore I need to force all generated URIs to be https.
>
> If generated URIs means those coming from $c->uri_for() and friends,
> you
> should be able the modify the URI scheme in $c->request->base, which
> gets used by uri_for().
>
> Not tested but try something like the following.
>
> HTH,
> Larry
>
> Side question: Is namespace::autoclean needed any more?
define 'needed'?
It's never 'needed' as long as you never want a 'has' method, and
you're happy with none of your imports being cleaned up, so all your
classes are lolcat like in their ability to ->can('has');
Cheers
t0m
More information about the Catalyst
mailing list