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:
@@ -137,10 +137,7 @@ public function serveStaticFile($staticFilePath, $sitePath, $siteName, $uri)
|
|||||||
header('Content-Type: text/html');
|
header('Content-Type: text/html');
|
||||||
header_remove('Content-Type');
|
header_remove('Content-Type');
|
||||||
|
|
||||||
/**
|
header('X-Accel-Redirect: /static' . $staticFilePath);
|
||||||
* Tell Caddy to handle the static file itself, using it's `internal` feature.
|
|
||||||
*/
|
|
||||||
header('X-Accel-Redirect: ' . $staticFilePath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user