X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=eb99ab76eceb413b1190dc3fd2bb01e3183e0e44;hp=74d59fe87b7e719469646624c8a1ff151c347f45;hb=ca6d4ff660abd0bc8cd2e6590a5d8c76a5cae64a;hpb=58ece1eaaafa14d3ece3b4d579690162c2ebc8b2 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(@_) }