[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Tue May 29 08:16:42 EDT 2012


raeburn		Tue May 29 12:16:42 2012 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - For 2.11.
    - Reverse part of 1.1172.2.2 (changes from 1.1173 - work-in-progress).
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1172.2.2 loncom/lonnet/perl/lonnet.pm:1.1172.2.3
--- loncom/lonnet/perl/lonnet.pm:1.1172.2.2	Mon May 28 15:02:06 2012
+++ loncom/lonnet/perl/lonnet.pm	Tue May 29 12:16:42 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1172.2.2 2012/05/28 15:02:06 raeburn Exp $
+# $Id: lonnet.pm,v 1.1172.2.3 2012/05/29 12:16:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,8 +75,6 @@
 use HTTP::Date;
 use Image::Magick;
 
-use Encode;
-
 use vars qw(%perlvar %spareid %pr %prp $memcache %packagetab $tmpdir
             $_64bit %env %protocol %loncaparevs %serverhomeIDs %needsrelease
             %managerstab);
@@ -2570,11 +2568,10 @@
 
     $request->header(Cookie => $ENV{'HTTP_COOKIE'});
     my $response= $ua->request($request);
-    my $content = Encode::decode_utf8($response->content);
     if (wantarray) {
-	return ($content, $response);
+	return ($response->content, $response);
     } else {
-	return $content;
+	return $response->content;
     }
 }
 




More information about the LON-CAPA-cvs mailing list