Subject: | finalize_headers() in Catalyst::Engine::HTTP doesn't check $self->options is true before relying on it |
Lines 71-74 of Catalyst::Engine::HTTP:
if ( $self->options->{keepalive}
&& $connection
&& $connection =~ /^keep-alive$/i
) {
If $self->options() returns null (and under Catalyst::Test, in our
setup, it appears to), you get a fatal error. Manually patching to check
that $self->options() is returning true first fixes this:
if ( $self->options
&& $self->options->{keepalive}
&& $connection
&& $connection =~ /^keep-alive$/i
) {
Cheers.
-P