projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
85f877d
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Plugin/Static/Simple.pm
b/lib/Catalyst/Plugin/Static/Simple.pm
index
a89825d
..
cab5625
100644
(file)
--- 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 {