Skip to content

Commit

Permalink
Fix replace response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
oanhnn committed Jan 7, 2025
1 parent 1c5c54f commit b52437b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __invoke(Request $request, string $path): StreamedResponse
$disk->response($path, null, $headers),
function ($response) use ($headers) {
if (! $response->headers->has('Content-Security-Policy')) {
$response->headers->replace();
$response->headers->replace($headers);
}
}
);
Expand Down

0 comments on commit b52437b

Please sign in to comment.