mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Don't even set the INI setting because it doesn't work in 5.6, do this dumb hack instead.
This commit is contained in:
@@ -119,7 +119,8 @@ public function mutateUri($uri)
|
|||||||
*/
|
*/
|
||||||
public function serveStaticFile($staticFilePath, $sitePath, $siteName, $uri)
|
public function serveStaticFile($staticFilePath, $sitePath, $siteName, $uri)
|
||||||
{
|
{
|
||||||
ini_set('default_mimetype', '');
|
header('Content-Type: text/html');
|
||||||
|
header_remove('Content-Type');
|
||||||
header('X-Accel-Redirect: ' . $staticFilePath);
|
header('X-Accel-Redirect: ' . $staticFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user