if we change encoding on $c after asking for a write_fh we want to make sure catalyst...
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Response.pm
index 186eb0d..13a1f63 100644 (file)
@@ -67,7 +67,7 @@ sub _build_write_fh {
   my $requires_encoding = $_[0]->encodable_response;
   my %fields = (
     _writer => $writer,
-    _encoding => $_[0]->_context->encoding,
+    _context => $_[0]->_context,
     _requires_encoding => $requires_encoding,
   );