Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r11037: LJSUP-9792 (generalize m.livejournal.com...

Committer: ailyin
LJSUP-9792 (generalize m.livejournal.com's router/controller/response framework)
U   trunk/cgi-bin/LJ/Controller.pm
U   trunk/cgi-bin/LJ/Response/Error.pm
U   trunk/cgi-bin/LJ/Response/Template.pm
Modified: trunk/cgi-bin/LJ/Controller.pm
===================================================================
--- trunk/cgi-bin/LJ/Controller.pm	2011-09-27 09:40:03 UTC (rev 11036)
+++ trunk/cgi-bin/LJ/Controller.pm	2011-09-27 09:41:00 UTC (rev 11037)
@@ -17,4 +17,6 @@
     return LJ::Response::Error->new;
 }
 
+sub premature_checks {}
+
 1;

Modified: trunk/cgi-bin/LJ/Response/Error.pm
===================================================================
--- trunk/cgi-bin/LJ/Response/Error.pm	2011-09-27 09:40:03 UTC (rev 11036)
+++ trunk/cgi-bin/LJ/Response/Error.pm	2011-09-27 09:41:00 UTC (rev 11037)
@@ -16,6 +16,10 @@
         'active_journal_username' => $self->active_journal_username,
     );
 
+    LJ::Request->notes( 'http_errors_no_bml' => 1 );
+    LJ::Request->content_type('text/html; charset=utf-8');
+    LJ::Request->send_cookies;    
+    LJ::Request->send_http_header();
     LJ::Request->print($output);
 }
 

Modified: trunk/cgi-bin/LJ/Response/Template.pm
===================================================================
--- trunk/cgi-bin/LJ/Response/Template.pm	2011-09-27 09:40:03 UTC (rev 11036)
+++ trunk/cgi-bin/LJ/Response/Template.pm	2011-09-27 09:41:00 UTC (rev 11037)
@@ -33,6 +33,9 @@
         $final_output = $output_body;
     }
 
+    LJ::Request->content_type('text/html; charset=utf-8');
+    LJ::Request->send_cookies;    
+    LJ::Request->send_http_header();
     LJ::Request->print($final_output);
 }
 

Tags: andy, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments