1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +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:
Adam Wathan
2016-09-24 16:41:08 -04:00
parent 3facbef790
commit 22528cebaa

View File

@@ -119,7 +119,8 @@ public function mutateUri($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);
}