Fix unicode issues in CGI and FastCGI engines
Tomas Doran [Sun, 22 Nov 2009 13:04:50 +0000 (13:04 +0000)]
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)