[Jifty-commit] r1085 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon May 22 13:13:49 EDT 2006


Author: alexmv
Date: Mon May 22 13:13:47 2006
New Revision: 1085

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Response.pm

Log:
 r13088 at zoq-fot-pik:  chmrr | 2006-05-22 13:13:37 -0400
  * Don't try to add headers if running from the command line


Modified: jifty/trunk/lib/Jifty/Response.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Response.pm	(original)
+++ jifty/trunk/lib/Jifty/Response.pm	Mon May 22 13:13:47 2006
@@ -40,7 +40,7 @@
 
 sub add_header {
     my $self = shift;
-     Jifty->handler->apache->header_out( @_ );
+     Jifty->handler->apache->header_out( @_ ) if Jifty->handler->apache;
 
     # This one is so we can get jifty's headers into mason
     # Otherwise we'd have to wrap mason's output layer


More information about the Jifty-commit mailing list