Sergej Zoubok wrote:
>
>>
>> You could do something like this in your run mode:
>>
>> if( !$self->query->https ) {
>> my $new_url = $self->query->url(-full => 1);
>> $new_url =~ s/http:/https:/;
>> $self->header_type('redirect');
>> $self->header_add(-uri => $new_url);
>> return ' ';
>> }
>
> Michael,
>
> Thanks so much! It always looks simple once you see someone else's
> elegant solution. ;-)
Hello Sergej,
Perhaps when you are done with your busy time, you could contribute to
CGI::Application by completing this plugin.
With what is published on the wiki
( http://cgiapp.erlbaum.net/cgi-bin/cgi-app/index.cgi?PluginsWanted )
and considering Catalyst::Plugin::RequireSSL can be re-used... it
shouldn't be too hard to complete the project. Then, future people who
are looking for a quick and easy solution for this will have one.
Mark
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]