mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Send empty Content-Type header to force nginx to determine on it's own
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user