X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=c4148963c5d2b739c1bc41a50fb39da3361c2f42;hp=daf53d191f507de45bc9cda0e169a8ceea03c8f1;hb=89ba65d5fb85ab30fa5d8109cd0d22860608605b;hpb=f2b83422bad57b7956d06c7b70098fb986ccf06e diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index daf53d1..c414896 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -180,6 +180,9 @@ sub finalize_error { $title = $name = "$name on Catalyst $Catalyst::VERSION"; $name = "

$name

"; + # Don't show context in the dump + $c->res->_clear_context; + # Don't show body parser in the dump $c->req->_clear_body; @@ -328,7 +331,7 @@ Allows engines to write headers to response sub finalize_headers { my ($self, $ctx) = @_; - $ctx->response->finalize_headers; + $ctx->finalize_headers unless $ctx->response->finalized_headers; return; }