in reply to XML::FeedPP Crashing Despite Eval

In parsehttp_lwp in XML::TreePP, change

my $text = $res->content();

to

# Use decoded_content to handle HTTP Content-Encoding my $text = $res->decoded_content( charset => 'none' );

I submitted this as rt://47336. Calling $response->content is almost always a bug.

Replies are listed 'Best First'.
Re^2: XML::FeedPP Crashing Despite Eval
by cormanaz (Deacon) on Jun 25, 2009 at 22:37 UTC
    Yup, that took care of it. Many thanks.