aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-25 09:26:05 +1200
committerDavid Phillips <david@sighup.nz>2017-05-25 09:26:05 +1200
commit579e9b00d464f60d676bc0635e36b933279ac777 (patch)
tree7e2c542936756686865b448671c0923d03305798
parenta61bc4ca5363ef2d865047a583fe76d65f17817c (diff)
downloadidalius-579e9b00d464f60d676bc0635e36b933279ac777.tar.xz
Add harder size limit to response
-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 2a2258b..daaa198 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 => {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);