X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=eb99ab76eceb413b1190dc3fd2bb01e3183e0e44;hb=2234c98aef4d0c6b320482efc02c308c17d2670d;hp=74d59fe87b7e719469646624c8a1ff151c347f45;hpb=67fd25bc03bc87a19db237a13fcb1cd157252101;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 74d59fe..eb99ab7 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -109,7 +109,7 @@ before [qw(status headers content_encoding content_length content_type header)] $self->_context->log->warn( "Useless setting a header value after finalize_headers and the response callback has been called." . " Not what you want." ) - if ( $self->finalized_headers && !$self->_has_response_cb && @_ ); + if ( $self->_context && $self->finalized_headers && !$self->_has_response_cb && @_ ); }; sub output { shift->body(@_) }