[LON-CAPA-cvs] cvs: loncom / LWPReq.pm
raeburn
raeburn at source.lon-capa.org
Thu Sep 20 14:43:24 EDT 2018
raeburn Thu Sep 20 18:43:24 2018 EDT
Modified files:
/loncom LWPReq.pm
Log:
- Explicitly require LWP::Protocol::http for older versions of libwww.
Index: loncom/LWPReq.pm
diff -u loncom/LWPReq.pm:1.3 loncom/LWPReq.pm:1.4
--- loncom/LWPReq.pm:1.3 Thu Sep 20 14:17:01 2018
+++ loncom/LWPReq.pm Thu Sep 20 18:43:24 2018
@@ -2,7 +2,7 @@
# LON-CAPA wrapper for LWP UserAgent to accommodate certification
# verification for SSL.
#
-# $Id: LWPReq.pm,v 1.3 2018/09/20 14:17:01 raeburn Exp $
+# $Id: LWPReq.pm,v 1.4 2018/09/20 18:43:24 raeburn Exp $
#
# The LearningOnline Network with CAPA
#
@@ -175,6 +175,7 @@
if (LWP::UserAgent->VERSION >= 5.834) {
$ua->local_address('127.0.0.1');
} else {
+ require LWP::Protocol::http;
local @LWP::Protocol::http::EXTRA_SOCK_OPTS =
(LocalAddr => '127.0.0.1');
}
More information about the LON-CAPA-cvs
mailing list