Skip to content

Commit b3984f1

Browse files
authored
Merge pull request #716 from mla/master
stat already open filehandle rather than filename
2 parents 3b4cf13 + f3e27b5 commit b3984f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Plack/App/File.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sub serve_path {
9797
open my $fh, "<:raw", $file
9898
or return $self->return_403;
9999

100-
my @stat = stat $file;
100+
my @stat = stat $fh;
101101

102102
Plack::Util::set_io_path($fh, Cwd::realpath($file));
103103

0 commit comments

Comments
 (0)