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

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

Committer: ailyin
LJSUP-9792 (generalize m.livejournal.com's router/controller/response framework)
U   trunk/cgi-bin/LJ/Response/Redirect.pm
U   trunk/cgi-bin/LJ/Router.pm
Modified: trunk/cgi-bin/LJ/Response/Redirect.pm
===================================================================
--- trunk/cgi-bin/LJ/Response/Redirect.pm	2011-10-04 07:51:35 UTC (rev 11068)
+++ trunk/cgi-bin/LJ/Response/Redirect.pm	2011-10-05 03:02:01 UTC (rev 11069)
@@ -14,6 +14,9 @@
     unless ( $self->status ) {
         $self->status($status);
     }
+
+    LJ::Request->send_http_header();
+    LJ::Request->send_cookies;
 }
 
 sub http_status {

Modified: trunk/cgi-bin/LJ/Router.pm
===================================================================
--- trunk/cgi-bin/LJ/Router.pm	2011-10-04 07:51:35 UTC (rev 11068)
+++ trunk/cgi-bin/LJ/Router.pm	2011-10-05 03:02:01 UTC (rev 11069)
@@ -11,6 +11,10 @@
 );
 
 sub match_controller {
+    # we needn't match anything if this is a request from the parent
+    # apache process to check the child's still running fine
+    return unless defined LJ::Request->hostname;
+
     foreach my $router (@routers) {
         $router->match_controller;
         return if LJ::Request->notes('controller');

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