[Rt-commit] r18503 - rt/3.8/trunk/lib/RT/Interface
    ruz at bestpractical.com 
    ruz at bestpractical.com
       
    Sat Feb 21 00:32:59 EST 2009
    
    
  
Author: ruz
Date: Sat Feb 21 00:32:59 2009
New Revision: 18503
Modified:
   rt/3.8/trunk/lib/RT/Interface/Web.pm
Log:
* not sure why, but on some systems without explicit status change mason doesn't
  set status to 302, but 200 instead and people see blank pages
Modified: rt/3.8/trunk/lib/RT/Interface/Web.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Interface/Web.pm	(original)
+++ rt/3.8/trunk/lib/RT/Interface/Web.pm	Sat Feb 21 00:32:59 2009
@@ -203,6 +203,10 @@
         $uri->port( $ENV{'SERVER_PORT'} );
     }
 
+    # not sure why, but on some systems without this call mason doesn't
+    # set status to 302, but 200 instead and people see blank pages
+    $HTML::Mason::Commands::r->status(302);
+
     # Perlbal expects a status message, but Mason's default redirect status 
     # doesn't provide one. See also rt.cpan.org #36689.
     $HTML::Mason::Commands::m->redirect($uri->canonical, "302 Found");
    
    
More information about the Rt-commit
mailing list