X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FWWW%2FOffliberty.pm;h=f14c0d8f1d18916e9a24b1eafcad7547153e185a;hb=c5b1f2e7fe470018176932f7c66cc031ecdc2d11;hp=1163d9ee21f1ddc3fb2808bd403031d63c9cc717;hpb=6e824810e6aa6dbf859d2d9b21d156c1326285d4;p=www-offliberty.git diff --git a/lib/WWW/Offliberty.pm b/lib/WWW/Offliberty.pm index 1163d9e..f14c0d8 100644 --- a/lib/WWW/Offliberty.pm +++ b/lib/WWW/Offliberty.pm @@ -12,12 +12,12 @@ use constant OFF_URL => 'http://offliberty.com/off02.php'; use HTML::TreeBuilder; use HTTP::Tiny; -our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => "http://offliberty.com/"}); +our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => 'http://offliberty.com/'}); sub off{ my ($url, @params) = @_; my $ret = $http->post_form(OFF_URL, {track => $url, @params}); - die $ret->{reason} unless $ret->{success}; + die $ret->{reason} unless $ret->{success}; ## no critic (RequireCarping) my $root = HTML::TreeBuilder->new_from_content($ret->{content}); map { $_->attr('href') } $root->look_down(qw/_tag a class download/); }