We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2a220b commit 7b0e867Copy full SHA for 7b0e867
src/App.php
@@ -43,7 +43,7 @@ private function requestHander(array $compiledRoutes)
43
Config::get('publicDirPath') !== NULL &&
44
Config::get('publicUrl') !== NULL &&
45
preg_match('#^' . Config::get('publicUrl') . '(.*)$#', $requestPath, $matches) &&
46
- file_exists(Config::get('publicDirPath') . '/' . $matches[1])
+ is_file(Config::get('publicDirPath') . '/' . $matches[1])
47
) {
48
$filePath = Config::get('publicDirPath') . '/' . $matches[1];
49
$callbacks[] = function (Request $request, Response $response) use ($filePath) {
0 commit comments