[Catalyst] working with strange port setups

Peter Karman peter at peknet.com
Sat Aug 21 17:57:17 GMT 2010


Tomas Doran wrote on 8/21/10 12:44 PM:
> 
> On 21 Aug 2010, at 10:51, Darren Duncan wrote:
>> Therefore, can anyone tell me how to configure Catalyst so that it
>> builds the urls I need, or alternately where in the Catalyst source I
>> should look in order to create a patch to enable this?
> 
> You want to be adding a test in
> t/aggregate/unit_core_engine_cgi-prepare_path.t and you're very likely
> to want to do the fix in Catalyst::Engine::CGI
> 

specifically, probably, these lines:

    if ( $port !~ /^(?:80|443)$/ && $host !~ /:/ ) {
        $host .= ":$port";
    }




-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Catalyst mailing list