when finalizing body after earlier write use unencoded_write
[catagits/Catalyst-Runtime.git] / t / utf_incoming.t
index 6c0205d..ff61a6b 100644 (file)
@@ -113,8 +113,8 @@ use Scalar::Util ();
 
   sub write_then_body :Local {
     my ($self, $c) = @_;
-    $c->clear_encoding;
-    $c->res->content_type('text/plain');
+
+    $c->res->content_type('text/html');
     $c->res->write("<p>This is early_write action ♥</p>");
     $c->res->body("<p>This is body_write action ♥</p>");
   }