Fix unicode issues in CGI and FastCGI engines
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / CGI.pm
index 8416e09..4c20c62 100644 (file)
@@ -85,6 +85,7 @@ sub prepare_connection {
     if ( $ENV{SERVER_PORT} == 443 ) {
         $request->secure(1);
     }
+    binmode(STDOUT); # Ensure we are sending bytes.
 }
 
 =head2 $self->prepare_headers($c)