Set binmode on static files for win32 support
[catagits/Catalyst-Runtime.git] / 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 {