On 16 Aug 2012, at 02:45, Bill Moseley wrote:
>
> Shouldn't that code check that the content-type is HTML before attempting to
> parse?
Yes!
Cheers
t0m
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf
http://cpansearch.perl.org/src/BOBTFISH/Catalyst-Runtime-5.90015/lib/Catalyst/Test.pm
In the "mangle_response" sub the code does this:
require HTML::HeadParser;
my $parser = HTML::HeadParser->new();
$parser->xml_mode(1) if $resp->content_is_xhtml;
$parser->utf8_mode(1) if $] >= 5.008 && $HTML::