From e229ee6daf6342373c5c2e465fea0aeebb9a29c6 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 29 May 2017 19:50:48 +1200 Subject: Correct malformed range request --- plugin/url_title.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/url_title.pm b/plugin/url_title.pm index daaa198..4ab48af 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 => 5)); my $response = $http->get($url); -- cgit v1.1