Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Prev Previous commit
Next Next commit
fix handleStaticRequest function
  • Loading branch information
albertcht committed May 5, 2018
commit 4e5b7f2123b466aed19d5e0c182f8422b5d88427
2 changes: 1 addition & 1 deletion src/Server/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ protected function handleStaticRequest($illuminateRequest, $swooleResponse)
$publicPath = $this->container['config']->get('swoole_http.server.public_path', base_path('public'));
$filename = $publicPath . $uri;

if (! file_exists($filename)) {
if (! is_file($filename)) {
return;
}

Expand Down