[Jifty-commit] r5570 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Wed Jul 23 13:19:30 EDT 2008
Author: alexmv
Date: Wed Jul 23 13:19:25 2008
New Revision: 5570
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Server.pm
Log:
r34550 at kohr-ah: chmrr | 2008-07-23 13:16:20 -0400
* We need to lexwrap, earlier, so Net::Server subclasses also get it
Modified: jifty/trunk/lib/Jifty/Server.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Server.pm (original)
+++ jifty/trunk/lib/Jifty/Server.pm Wed Jul 23 13:19:25 2008
@@ -36,9 +36,10 @@
=cut
sub _send_http_status {
- print STDOUT "HTTP/1.0 ". (Jifty->handler->apache->{headers_out}->{'Status'} || '200 Jifty OK') . "\n";
-};
-
+ print STDOUT "HTTP/1.0 ". (Jifty->handler->apache->{headers_out}->{'Status'} || '200 Jifty OK') . "\n";
+}
+use Hook::LexWrap;
+wrap 'HTML::Mason::FakeApache::send_http_header', pre => \&_send_http_status;
sub new {
my $class = shift;
@@ -134,9 +135,6 @@
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