]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
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:57:31 +0000 (22:57 +0000)
commit67eaa228ef6fe3bc41929bf3998bf765a726f85d
tree9d2fbb6c2c12cb1ad3da5d2de12835dfc9a4f51b
parent4d5e2c3e5ce8c560e740e30ea74869a7fee2ed7c
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]