[LON-CAPA-cvs] cvs: loncom /auth lonauth.pm

raeburn raeburn at source.lon-capa.org
Wed Oct 14 23:09:40 EDT 2020


raeburn		Thu Oct 15 03:09:40 2020 EDT

  Modified files:              
    /loncom/auth	lonauth.pm 
  Log:
  - Send HTTP header when displaying "no server available to host" page.
  
  
Index: loncom/auth/lonauth.pm
diff -u loncom/auth/lonauth.pm:1.159 loncom/auth/lonauth.pm:1.160
--- loncom/auth/lonauth.pm:1.159	Sun Mar 15 23:04:10 2020
+++ loncom/auth/lonauth.pm	Thu Oct 15 03:09:40 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # User Authentication Module
 #
-# $Id: lonauth.pm,v 1.159 2020/03/15 23:04:10 raeburn Exp $
+# $Id: lonauth.pm,v 1.160 2020/10/15 03:09:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -686,6 +686,8 @@
             }
             $r->internal_redirect($switchto);
         } else {
+            &Apache::loncommon::content_type($r,'text/html');
+            $r->send_http_header;
             $r->print(&noswitch());
         }
         return OK;
@@ -716,6 +718,8 @@
                 }
                 $r->internal_redirect($switchto);
             } else {
+                &Apache::loncommon::content_type($r,'text/html');
+                $r->send_http_header;
                 $r->print(&noswitch());
             }
             return OK;




More information about the LON-CAPA-cvs mailing list