Set binmode on static files for win32 support
Andy Grundman [Thu, 20 Oct 2005 18:37:26 +0000 (18:37 +0000)]
lib/Catalyst/Plugin/Static/Simple.pm

index a89825d..cab5625 100644 (file)
@@ -198,6 +198,7 @@ sub _serve_static {
         # new method, pass an IO::File object to body
         my $fh = IO::File->new( $full_path, 'r' );
         if ( defined $fh ) {
+            $fh->binmode;
             $c->res->body( $fh );
         }
         else {