[Catalyst] Catalyst advent calendar / day 12: minor correction

Marcello Romani mromani at ottotecnica.com
Wed Dec 13 16:12:23 GMT 2006


Hi,
     I spotted a little problem when following the 12th day of cat calendar.

The original line:

} if $c->engine eq 'Catalyst::Engine::HTTP';

doesn't work if one launches the dev http server with -r option.
That's because the engine becomes C::E::HTTP::Restarter.
I changed the line in:

} if ($c->engine =~ /^Catalyst::Engine::HTTP/);

HTH

-- 
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com



More information about the Catalyst mailing list