Don't fetch more than 10K to find the title. If it's not there by then, oh well.
authorpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 28 Oct 2008 16:00:40 +0000 (16:00 +0000)
committerpdbogen <pdbogen@088b83a4-0077-4247-935c-42ec02c2848b>
Tue, 28 Oct 2008 16:00:40 +0000 (16:00 +0000)
git-svn-id: https://www.cernu.us/~pdbogen/svn/destult2@74 088b83a4-0077-4247-935c-42ec02c2848b

commands.yaml

index fbd1b0e..464c4e3 100644 (file)
@@ -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 ) {