[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

www lon-capa-cvs@mail.lon-capa.org
Mon, 29 Sep 2003 13:42:02 -0000


www		Mon Sep 29 09:42:02 2003 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Bug #2247: incorrect headers fixed.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.240 loncom/interface/lonprintout.pm:1.241
--- loncom/interface/lonprintout.pm:1.240	Thu Sep 25 16:43:31 2003
+++ loncom/interface/lonprintout.pm	Mon Sep 29 09:42:02 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.240 2003/09/25 20:43:31 albertel Exp $
+# $Id: lonprintout.pm,v 1.241 2003/09/29 13:42:02 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1045,9 +1045,9 @@
 
     if ($r->header_only) {
         if ($ENV{'browser.mathml'}) {
-            $r->content_type('text/xml');
+            &Apache::loncommon::content_type($r,'text/xml');
         } else {
-            $r->content_type('text/html');
+            &Apache::loncommon::content_type($r,'text/html');
         }
         $r->send_http_header;
         return OK;
@@ -1055,9 +1055,9 @@
 
     # Send header, nocache
     if ($ENV{'browser.mathml'}) {
-        $r->content_type('text/xml');
+        &Apache::loncommon::content_type($r,'text/xml');
     } else {
-        $r->content_type('text/html');
+        &Apache::loncommon::content_type($r,'text/html');
     }
     &Apache::loncommon::no_cache($r);
     $r->send_http_header;