aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/aggregate.pm
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-07-27 08:12:01 -0400
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2013-07-27 08:12:01 -0400
commit462d8f8015db338c7a5c718f1b92006c2bee9cfe (patch)
treec43f8b0919dd4859677be59e73fbee81e7364040 /IkiWiki/Plugin/aggregate.pm
parent07cb6368aa2d6404ea24186be816b2d07afec071 (diff)
downloadikiwiki-462d8f8015db338c7a5c718f1b92006c2bee9cfe.tar
ikiwiki-462d8f8015db338c7a5c718f1b92006c2bee9cfe.tar.gz
Honor proxy env vars and reliably honor cookiejar.
Diffstat (limited to 'IkiWiki/Plugin/aggregate.pm')
-rw-r--r--IkiWiki/Plugin/aggregate.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index be6e8d476..ccbc6c9a9 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -522,11 +522,8 @@ sub aggregate (@) {
}
$feed->{feedurl}=pop @urls;
}
- my $res=URI::Fetch->fetch($feed->{feedurl},
- UserAgent => LWP::UserAgent->new(
- cookie_jar => $config{cookiejar},
- ),
- );
+ my $ua=useragent();
+ my $res=URI::Fetch->fetch($feed->{feedurl}, UserAgent=>$ua);
if (! $res) {
$feed->{message}=URI::Fetch->errstr;
$feed->{error}=1;