Move write and finalize_headers into response object
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 9f683bb..9e77f31 100644 (file)
@@ -2973,10 +2973,7 @@ your output data, if known.
 sub write {
     my $c = shift;
 
-    # Finalize headers if someone manually writes output
-    $c->finalize_headers;
-
-    return $c->engine->write( $c, @_ );
+    return $c->response->write( @_ );
 }
 
 =head2 version