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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 20 Apr 2004 15:46:35 -0000


sakharuk		Tue Apr 20 11:46:35 2004 EDT

  Modified files:              
    /loncom/interface	lonhelper.pm 
  Log:
  Corrected header.
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.69 loncom/interface/lonhelper.pm:1.70
--- loncom/interface/lonhelper.pm:1.69	Tue Apr 20 11:08:26 2004
+++ loncom/interface/lonhelper.pm	Tue Apr 20 11:46:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.69 2004/04/20 15:08:26 sakharuk Exp $
+# $Id: lonhelper.pm,v 1.70 2004/04/20 15:46:34 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -263,8 +263,13 @@
 
 
     # Send header, don't cache this page
-
-    if (&Apache::lonhomework::setupheader($r)) { return OK; }
+    if ($ENV{'browser.mathml'}) {
+	&Apache::loncommon::content_type($r,'text/xml');
+    } else {
+	&Apache::loncommon::content_type($r,'text/html');
+    }
+    $r->send_http_header;
+    return OK if $r->header_only;
     $r->rflush();
 
     # Discard result, we just want the objects that get created by the