[LON-CAPA-cvs] cvs: loncom(version_2_3_X) /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 25 Jan 2007 21:45:48 -0000
albertel Thu Jan 25 16:45:48 2007 EDT
Modified files: (Branch: version_2_3_X)
/loncom/lonnet/perl lonnet.pm
Log:
- remove token wrapper comapt code (which isn't needed any way),
it was causing SSO auth redirects to get dowloaded as if they were
the real page
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.824.2.1 loncom/lonnet/perl/lonnet.pm:1.824.2.2
--- loncom/lonnet/perl/lonnet.pm:1.824.2.1 Thu Jan 25 16:10:51 2007
+++ loncom/lonnet/perl/lonnet.pm Thu Jan 25 16:45:44 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.824.2.1 2007/01/25 21:10:51 albertel Exp $
+# $Id: lonnet.pm,v 1.824.2.2 2007/01/25 21:45:44 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -7167,14 +7167,7 @@
} else {
my $lwpresp = &getuploaded('GET',$uri,$cdom,$cnum,\$info,\$rtncode);
if ($lwpresp ne 'ok') {
- my $ua=new LWP::UserAgent;
- my $request=new HTTP::Request('GET',&tokenwrapper($uri));
- my $response=$ua->request($request);
- if ($response->is_success()) {
- $info=$response->content;
- } else {
- return -1;
- }
+ return -1;
}
my @parts = ($cdom,$cnum);
if ($filename =~ m|^(.+)/[^/]+$|) {