1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Send empty Content-Type header to force nginx to determine on it's own

This commit is contained in:
Adam Wathan
2016-09-22 13:11:01 -04:00
parent e965fac863
commit be89d96078

View File

@@ -137,10 +137,7 @@ public function serveStaticFile($staticFilePath, $sitePath, $siteName, $uri)
header('Content-Type: text/html');
header_remove('Content-Type');
/**
* Tell Caddy to handle the static file itself, using it's `internal` feature.
*/
header('X-Accel-Redirect: ' . $staticFilePath);
header('X-Accel-Redirect: /static' . $staticFilePath);
}
/**