[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Tue Feb 4 16:54:59 EST 2020
raeburn Tue Feb 4 21:54:59 2020 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface loncommon.pm
Log:
- For 2.11. Modify changes included in rev. 1.1075.2.135
Use LWP::UserAgent instead of LONCAPA::LWPReq (which is not in 2.11)
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1075.2.141 loncom/interface/loncommon.pm:1.1075.2.142
--- loncom/interface/loncommon.pm:1.1075.2.141 Fri Jan 10 05:15:29 2020
+++ loncom/interface/loncommon.pm Tue Feb 4 21:54:58 2020
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1075.2.141 2020/01/10 05:15:29 raeburn Exp $
+# $Id: loncommon.pm,v 1.1075.2.142 2020/02/04 21:54:58 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -17187,7 +17187,9 @@
}
my $uselink;
my $request = new HTTP::Request('HEAD',$url);
- my $response = &LONCAPA::LWPReq::makerequest('',$request,'','',5);
+ my $ua = LWP::UserAgent->new;
+ $ua->timeout(5);
+ my $response=$ua->request($request);
if ($response->is_success()) {
my $secpolicy = lc($response->header('content-security-policy'));
my $xframeop = lc($response->header('x-frame-options'));
More information about the LON-CAPA-cvs
mailing list