if a response is from an external psgi app, donot double encode if a charset is present
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index 948f28f..cd0d383 100644 (file)
@@ -14,6 +14,7 @@ use Encode 2.21 'decode_utf8';
 use Plack::Request::Upload;
 use Hash::MultiValue;
 use namespace::clean -except => 'meta';
+use utf8;
 
 # Amount of data to read from input on each pass
 our $CHUNKSIZE = 64 * 1024;
@@ -129,7 +130,6 @@ sub finalize_body {
             # There's no body...
             $body = [];
         }
-
         $res->_response_cb->([ $res->status, \@headers, $body]);
         $res->_clear_response_cb;