projects
/
www-offliberty.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
925cdb7
)
Set Referer header to bypass hotlinking protection
author
Marius Gavrilescu
<marius@ieval.ro>
Fri, 4 Dec 2015 12:08:44 +0000
(12:08 +0000)
committer
Marius Gavrilescu
<marius@ieval.ro>
Fri, 4 Dec 2015 12:08:44 +0000
(12:08 +0000)
lib/WWW/Offliberty.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/WWW/Offliberty.pm
b/lib/WWW/Offliberty.pm
index 7b658f0978f8aca64107843298ae464d2371b269..b5b79188003d9cc44327f9edad544a79d06044b9 100644
(file)
--- a/
lib/WWW/Offliberty.pm
+++ b/
lib/WWW/Offliberty.pm
@@
-12,7
+12,7
@@
use constant OFF_URL => 'http://offliberty.com/off54.php';
use HTML::TreeBuilder;
use HTTP::Tiny;
-my $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ");
+my $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION "
, default_headers => {Referer => "http://offliberty.com/"}
);
sub off{
my ($url, @params) = @_;
This page took
0.010631 seconds
and
4
git commands to generate.