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

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 23 Aug 2003 08:29:02 -0000


albertel		Sat Aug 23 04:29:02 2003 EDT

  Modified files:              
    /loncom/interface	lonremote.pm 
  Log:
  - didn't set content-type (Moz 1.4 seems to default to text/plain at least on RH rawhide)
  
  
Index: loncom/interface/lonremote.pm
diff -u loncom/interface/lonremote.pm:1.8 loncom/interface/lonremote.pm:1.9
--- loncom/interface/lonremote.pm:1.8	Thu Jun  5 22:24:49 2003
+++ loncom/interface/lonremote.pm	Sat Aug 23 04:29:01 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonremote.pm,v 1.8 2003/06/06 02:24:49 www Exp $
+# $Id: lonremote.pm,v 1.9 2003/08/23 08:29:01 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -101,6 +101,10 @@
 
     my $lowerurl=$ENV{'form.url'};
     unless ($lowerurl) { $lowerurl='/adm/menu'; }
+
+    $r->content_type('text/html');
+    $r->send_http_header;
+    return OK if $r->header_only;
 
     if ($ENV{'form.action'} eq 'launch') {
 	&launchremote($r,$lowerurl);