Browse files

Use decoded_content in new_from_url

  • Loading branch information...
1 parent 9efc77b commit 3099fe81c23ed5a391767858042464b4f159362a @madsen committed Jan 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Build.PL
  2. +1 −1 lib/HTML/TreeBuilder.pm
View
2 Build.PL
@@ -43,7 +43,7 @@ my $builder = $class->new(
'HTML::Parser' => 3.46,
'HTML::Tagset' => 3.02,
'perl' => '5.8.0',
- 'LWP::UserAgent' => 0,
+ 'LWP::UserAgent' => 5.802, # HTTP::Message decoded_content method
'Scalar::Util' => 0,
},
add_to_cleanup =>
View
2 lib/HTML/TreeBuilder.pm
@@ -119,7 +119,7 @@ sub new_from_url { # should accept anything that LWP does.
require LWP::UserAgent;
my $fetch_result = LWP::UserAgent->new->get( $_[0] );
- $new->parse( $fetch_result->content );
+ $new->parse( $fetch_result->decoded_content );
return $new;
}

0 comments on commit 3099fe8

Please sign in to comment.