Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed called to 'agent' method.

Removed nasty typo.
  • Loading branch information...
commit 31542cc7ef5161f8f7979fa33057c428a315f159 1 parent 33f62b6
@davorg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Perlanet/Simple.pm
View
4 lib/Perlanet/Simple.pm
@@ -52,7 +52,7 @@ around '_build_ua' => sub {
my $orig = shift;
my $self = shift;
my $ua = $self->$orig;
- $ua->agent($self->cfg->{agent}) if $self->cfg->{agent};
+ $ua->agent($self->agent) if $self->agent;
return $ua;
};
@@ -68,7 +68,7 @@ around clean_html => sub {
my ($self, $html) = @_;
# hack to remove a particularly nasty piece of blogspot HTML
- $html = $self->$orig($html);who
+ $html = $self->$orig($html);
$html =~ s|<div align="justify"></div>||g;
return $html;
Please sign in to comment.
Something went wrong with that request. Please try again.