X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse%2FWriter.pm;h=003746103c4de5741d511f72894382d97570c546;hp=55cbdd12cbae50e1facae128157eba0ea8d3b7fb;hb=fe16aca1d8ee919d60870e3e5dc9efd6547b7872;hpb=e8361cf8fc1d23adf4a14a81726477c48a80449e diff --git a/lib/Catalyst/Response/Writer.pm b/lib/Catalyst/Response/Writer.pm index 55cbdd1..0037461 100644 --- a/lib/Catalyst/Response/Writer.pm +++ b/lib/Catalyst/Response/Writer.pm @@ -5,7 +5,7 @@ sub close { shift->{_writer}->close } sub write_encoded { my ($self, $line) = @_; - if((my $enc = $self->{_encoding}) && $self->{_requires_encoding}) { + if((my $enc = $self->{_context}->encoding) && $self->{_requires_encoding}) { # Not going to worry about CHECK arg since Unicode always croaks I think - jnap $line = $enc->encode($line); } @@ -13,7 +13,7 @@ sub write_encoded { $self->write($line); } -=head1 TITLE +=head1 NAME Catalyst::Response::Writer - Proxy over the PSGI Writer