Fixed a CGI header bug
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / CGI.pm
index bd47286..17e4eed 100644 (file)
@@ -43,8 +43,8 @@ sub finalize_headers {
 
     $c->response->header( Status => $c->response->status );
 
-    print $c->response->headers->as_string("\015\012") if *STDOUT->opened();
-    print "\015\012" if *STDOUT->opened();
+    print $c->response->headers->as_string("\015\012");
+    print "\015\012";
 }
 
 =head2 $self->prepare_connection($c)