From: Andy Grundman Date: Thu, 20 Oct 2005 18:37:26 +0000 (+0000) Subject: Set binmode on static files for win32 support X-Git-Tag: 5.7099_04~1169 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7e76765e102658b7bdb1424d4de980484b8fa477 Set binmode on static files for win32 support --- diff --git a/lib/Catalyst/Plugin/Static/Simple.pm b/lib/Catalyst/Plugin/Static/Simple.pm index a89825d..cab5625 100644 --- a/lib/Catalyst/Plugin/Static/Simple.pm +++ b/lib/Catalyst/Plugin/Static/Simple.pm @@ -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 {