--- loncom/interface/lonhelper.pm 2004/04/20 15:08:26 1.69 +++ loncom/interface/lonhelper.pm 2004/04/20 15:46:34 1.70 @@ -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 @@ sub real_handler { # 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