Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da1af9
)
useragent: Raise an exception if the LWP module can't be loaded
author
Simon McVittie
<smcv@debian.org>
Sun, 10 Feb 2019 16:29:19 +0000
(16:29 +0000)
committer
Simon McVittie
<smcv@debian.org>
Tue, 26 Feb 2019 22:57:28 +0000
(22:57 +0000)
Signed-off-by: Simon McVittie <smcv@debian.org>
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 6aa49229ace4ba23c68267ca942786da445526ac..f916a566db4c65760b3f4203c89095887d27fcf5 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-2448,6
+2448,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