aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 90cb96e58..dc047b08a 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2470,6 +2470,9 @@ sub add_autofile ($$$) {
}
sub useragent () {
+ eval q{use LWP};
+ error($@) if $@;
+
return LWP::UserAgent->new(
cookie_jar => $config{cookiejar},
env_proxy => 1, # respect proxy env vars