useragent: Automatically choose whether to use LWPx::ParanoidAgent
authorSimon McVittie <smcv@debian.org>
Sun, 10 Feb 2019 17:22:06 +0000 (17:22 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 26 Feb 2019 22:21:27 +0000 (22:21 +0000)
commitd283e4ca1aeb6ca8cc0951c8495f778071076013
treec6e10b583199d2157242b4bc31b22fb2c4ac210d
parent67543ce1d62161fdef9dca198289d7dd7dceacc0
useragent: Automatically choose whether to use LWPx::ParanoidAgent

The simple implementation of this, which I'd prefer to use, would be:
if we can import LWPx::ParanoidAgent, use it; otherwise, use
LWP::UserAgent.

However, aggregate has historically worked with proxies, and
LWPx::ParanoidAgent quite reasonably refuses to work with proxies
(because it can't know whether those proxies are going to do the same
filtering that LWPx::ParanoidAgent would).

Signed-off-by: Simon McVittie <smcv@debian.org>
IkiWiki.pm
IkiWiki/Plugin/aggregate.pm
IkiWiki/Plugin/blogspam.pm
IkiWiki/Plugin/openid.pm
IkiWiki/Plugin/pinger.pm
t/useragent.t [new file with mode: 0755]