Skip to content

Commit

Permalink
Use decoded_content in new_from_url
Browse files Browse the repository at this point in the history
  • Loading branch information
madsen committed Jan 15, 2012
1 parent 9efc77b commit 3099fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ my $builder = $class->new(
'HTML::Parser' => 3.46, 'HTML::Parser' => 3.46,
'HTML::Tagset' => 3.02, 'HTML::Tagset' => 3.02,
'perl' => '5.8.0', 'perl' => '5.8.0',
'LWP::UserAgent' => 0, 'LWP::UserAgent' => 5.802, # HTTP::Message decoded_content method
'Scalar::Util' => 0, 'Scalar::Util' => 0,
}, },
add_to_cleanup => add_to_cleanup =>
Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/TreeBuilder.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ sub new_from_url { # should accept anything that LWP does.


require LWP::UserAgent; require LWP::UserAgent;
my $fetch_result = LWP::UserAgent->new->get( $_[0] ); my $fetch_result = LWP::UserAgent->new->get( $_[0] );
$new->parse( $fetch_result->content ); $new->parse( $fetch_result->decoded_content );
return $new; return $new;
} }


Expand Down

0 comments on commit 3099fe8

Please sign in to comment.