1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00

port over additional header information from other drivers

This commit is contained in:
Joseph Richardson
2022-10-12 22:25:21 -04:00
committed by ehlovader
parent 7f0bdb737b
commit d54ac3206b

View File

@@ -48,6 +48,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
public function frontControllerPath($sitePath, $siteName, $uri)
{
$_SERVER['PHP_SELF'] = $uri;
$_SERVER['SERVER_ADDR'] = '127.0.0.1';
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
return parent::frontControllerPath(