Skip to content

Commit da8ec02

Browse files
authored
Allows serve static empty file (#162)
1 parent bc203d8 commit da8ec02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Swoole/SwooleClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function fileIsServable(string $publicPath, string $pathToFile): bool
7474
return $pathToFile &&
7575
! in_array(pathinfo($pathToFile, PATHINFO_EXTENSION), ['php', 'htaccess', 'config']) &&
7676
str_starts_with($pathToFile, $publicPath) &&
77-
is_file($pathToFile) && filesize($pathToFile);
77+
is_file($pathToFile);
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)