[Jifty-commit] r5259 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Sun Apr 6 00:03:51 EDT 2008


Author: clkao
Date: Sun Apr  6 00:03:44 2008
New Revision: 5259

Modified:
   jifty/trunk/lib/Jifty/Server.pm

Log:
move fakeapache lexwrap into after_listener_setup so other
fakeapache instances won't be affected by jifty::server.


Modified: jifty/trunk/lib/Jifty/Server.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Server.pm	(original)
+++ jifty/trunk/lib/Jifty/Server.pm	Sun Apr  6 00:03:44 2008
@@ -47,9 +47,6 @@
     $self->setup_jifty(@_);
     $self->recording_on if $ENV{'JIFTY_RECORD'};
 
-    use Hook::LexWrap;
-    wrap 'HTML::Mason::FakeApache::send_http_header', pre => \&_send_http_status;
-    
 
     return ($self);
 
@@ -136,6 +133,10 @@
 
 sub after_setup_listener {
     my $self = shift;
+
+    use Hook::LexWrap;
+    wrap 'HTML::Mason::FakeApache::send_http_header', pre => \&_send_http_status;
+
     my $sig = $ENV{JIFTY_SERVER_SIGREADY} or return;
     kill $sig => getppid();
 }


More information about the Jifty-commit mailing list