Recent change in WWW::Mechanize that breaks REST::Utils tests

12 views
Skip to first unread message

hartzell

unread,
Dec 1, 2011, 7:29:57 PM12/1/11
to WWW::Mechanize users
Hi,

Using a recent mirror of CPAN, I'm unable to get REST::Utils to pass
it's tests.

I've tracked the problem down to a recent change in WWW::Mechanize.

WWW::Mechanize::is_html now recognizes text/html and application/xhtml
+xml as "html", which causes WWW::Mechanize::update_html to be
invoked. update_html() currently forces the content type (actually
$self->{ct}) to text/html when it should instead be more careful
(using $self->res->content_type seems to work) so that it gets set to
text/html or application/xhtml_xml or ... as appropriate.

I filed a bug earlier in the week

http://code.google.com/p/www-mechanize/issues/detail?id=226

but haven't heard any feedback. What's the best way to move forward?

Thanks for any help,

g.

Reply all
Reply to author
Forward
0 new messages