--- loncom/interface/lonstatistics.pm 2003/11/16 21:20:47 1.91 +++ loncom/interface/lonstatistics.pm 2003/12/24 21:54:58 1.92 @@ -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 @@ sub handler { } } # - # 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'},