mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Check for GET requests
This commit is contained in:
@@ -48,7 +48,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
|
||||
*/
|
||||
public function frontControllerPath($sitePath, $siteName, $uri)
|
||||
{
|
||||
if ($this->isActualFile($staticPath = $this->getStaticPath($sitePath))) {
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET' && $this->isActualFile($staticPath = $this->getStaticPath($sitePath))) {
|
||||
return $staticPath;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user