preliminary support for io-asyn
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Response.pm
index 8559f36..1db5666 100644 (file)
@@ -29,14 +29,16 @@ has _writer => (
 has write_fh => (
   is=>'ro',
   predicate=>'has_write_fh',
-  lazy_build=>1);
+  lazy=>1,
+  builder=>'_build_write_fh',
+);
 
-  sub _build_write_fh {
-    my $self = shift;
-    $self->_context->finalize_headers unless
-      $self->finalized_headers;
-    $self->_writer;
-  };
+sub _build_write_fh {
+  my $self = shift;
+  $self->_context->finalize_headers unless
+    $self->finalized_headers;
+  $self->_writer;
+};
 
 sub DEMOLISH {
   my $self = shift;