X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=9153f82c34f3df624d693c57f909bd1ce568788c;hp=141099cc6b6584df2b2cf41366452116454cb1bc;hb=e8361cf8fc1d23adf4a14a81726477c48a80449e;hpb=8a79126d4370b7aa4ad841ed18a83df1f9e90ec8 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 141099c..9153f82 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -86,8 +86,10 @@ has response => ( lazy => 1, ); sub _build_response_constructor_args { - my $self = shift; - { _log => $self->log }; + return +{ + _log => $_[0]->log, + encoding => $_[0]->encoding, + }; } has namespace => (is => 'rw');