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=a9277b500dbb1039f6f86a6d6d39bded5331b535;hp=2399ae514e8bc1e4284215b246b04901f8fd957c;hb=cc7738c0fb5c4b5dc601734e7b525391d81d6639;hpb=fddc541da120ac66bc0eb75c9845eafbe0ff0707 diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 2399ae5..a9277b5 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -196,6 +196,8 @@ sub from_psgi_response { die "You can't set a Catalyst response from that, expect a valid PSGI response"; } + return if $self->finalized_headers; + # Encoding compatibilty. If the response set a charset, well... we need # to assume its properly encoded and NOT encode for this response. Otherwise # We risk double encoding.