aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-29 19:53:11 +1200
committerDavid Phillips <david@sighup.nz>2017-05-29 19:53:11 +1200
commit0cf2d4e466282495cb33a8a48a1d70b96b07e6d5 (patch)
treed521381a1b46bb0f9d52000bb86c9564f05293c2
parente229ee6daf6342373c5c2e465fea0aeebb9a29c6 (diff)
downloadidalius-0cf2d4e466282495cb33a8a48a1d70b96b07e6d5.tar.xz
Correct capitalisation on request headers
-rw-r--r--plugin/url_title.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/url_title.pm b/plugin/url_title.pm
index 4ab48af..5364677 100644
--- a/plugin/url_title.pm
+++ b/plugin/url_title.pm
@@ -26,7 +26,7 @@ sub message
}
return unless $url;
- my $http = HTTP::Tiny->new((default_headers => {range => "bytes=0-65536", accept => 'text/html'}, timeout => 5));
+ my $http = HTTP::Tiny->new((default_headers => {'Range' => "bytes=0-65536", 'Accept' => 'text/html'}, timeout => 3));
my $response = $http->get($url);