From 1c556308e7897ca402d5c3206106b19baf6034be Mon Sep 17 00:00:00 2001 From: pdbogen Date: Tue, 28 Oct 2008 16:00:40 +0000 Subject: [PATCH] Don't fetch more than 10K to find the title. If it's not there by then, oh well. git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@74 088b83a4-0077-4247-935c-42ec02c2848b --- commands.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.yaml b/commands.yaml index fbd1b0e..464c4e3 100644 --- a/commands.yaml +++ b/commands.yaml @@ -1727,6 +1727,7 @@ TITLE: |- use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(5); + $ua->max_size( 10240 ); my $req = HTTP::Request->new( GET => $what ); my $res = $ua->request( $req ); if( $res->is_success ) { -- 2.11.0