--- loncom/interface/lonchat.pm	2003/07/24 17:53:59	1.7
+++ loncom/interface/lonchat.pm	2005/02/17 08:50:20	1.9
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Chat
 #
-# $Id: lonchat.pm,v 1.7 2003/07/24 17:53:59 matthew Exp $
+# $Id: lonchat.pm,v 1.9 2005/02/17 08:50:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -34,7 +34,7 @@ use Apache::loncommon;
 
 sub handler {
     my $r = shift;
-    $r->content_type('text/html');
+    &Apache::loncommon::content_type($r,'text/html');
     $r->send_http_header;
     return OK if $r->header_only;
     if (! &Apache::lonnet::allowed('plc',$ENV{'request.course.id'}.
@@ -48,8 +48,9 @@ sub handler {
     }
 # --------------------------------------------------- Print login screen header
     my $latexHelp = Apache::loncommon::helpLatexCheatsheet();
+    my $html=&Apache::lonxml::xmlbegin();
     $r->print(<<ENDDOCUMENT);
-<html>
+$html
 <head>
 <title>The LearningOnline Network with CAPA</title>
 </head>