Skip to content

Commit 7b0e867

Browse files
Update App.php
1 parent b2a220b commit 7b0e867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private function requestHander(array $compiledRoutes)
4343
Config::get('publicDirPath') !== NULL &&
4444
Config::get('publicUrl') !== NULL &&
4545
preg_match('#^' . Config::get('publicUrl') . '(.*)$#', $requestPath, $matches) &&
46-
file_exists(Config::get('publicDirPath') . '/' . $matches[1])
46+
is_file(Config::get('publicDirPath') . '/' . $matches[1])
4747
) {
4848
$filePath = Config::get('publicDirPath') . '/' . $matches[1];
4949
$callbacks[] = function (Request $request, Response $response) use ($filePath) {

0 commit comments

Comments
 (0)