X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;fp=lib%2FCatalyst%2FResponse.pm;h=b0f04a3ab571dd63aacbca08eca7680a932d88d0;hp=a9277b500dbb1039f6f86a6d6d39bded5331b535;hb=75a7c429032fcfea6805a0cfedcedabb656e9931;hpb=cc7738c0fb5c4b5dc601734e7b525391d81d6639 diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index a9277b5..b0f04a3 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -196,7 +196,7 @@ sub from_psgi_response { die "You can't set a Catalyst response from that, expect a valid PSGI response"; } - return if $self->finalized_headers; + return unless $self->_context->has_encoding; # Encoding compatibilty. If the response set a charset, well... we need # to assume its properly encoded and NOT encode for this response. Otherwise