Permalink
Browse files

always use forward slashes. Fixes gh-49

  • Loading branch information...
1 parent ff577ba commit 19427482a83fcff78e08b66b39cecaa9ee2b43e0 @miyagawa miyagawa committed Nov 29, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Plack/App/File.pm
View
@@ -66,7 +66,10 @@ sub serve_path {
my $fh = $file->openr
or return $self->return_403;
- Plack::Util::set_io_path($fh, $file->stringify);
+
+ my $path = $file->stringify;
+ $path =~ s!\\!/!g;
+ Plack::Util::set_io_path($fh, $path);
binmode $fh;
my $stat = $file->stat;

0 comments on commit 1942748

Please sign in to comment.