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

www lon-capa-cvs@mail.lon-capa.org
Wed, 24 Dec 2003 21:54:58 -0000


www		Wed Dec 24 16:54:58 2003 EDT

  Modified files:              
    /loncom/interface	lonstatistics.pm 
  Log:
  Fix headers.
  
  
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.91 loncom/interface/lonstatistics.pm:1.92
--- loncom/interface/lonstatistics.pm:1.91	Sun Nov 16 16:20:47 2003
+++ loncom/interface/lonstatistics.pm	Wed Dec 24 16:54:58 2003
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstatistics.pm,v 1.91 2003/11/16 21:20:47 matthew Exp $
+# $Id: lonstatistics.pm,v 1.92 2003/12/24 21:54:58 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1105,21 +1105,11 @@
         }
     }
     #
-    # Set document type for header only
-    if($r->header_only) {
-        if ($ENV{'browser.mathml'}) {
-            $r->content_type('text/xml');
-        } else {
-            $r->content_type('text/html');
-        }
-        &Apache::loncommon::no_cache($r);
-        $r->send_http_header;
-        return OK;
-    }
-    #
     # Send the header
-    $r->content_type('text/html');
+    &Apache::loncommon::no_cache($r);
+    &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;
+    if ($r->header_only) { return OK; }
     #
     # Extract form elements from query string
     &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},