Skip to content

Commit d87c014

Browse files
committed
CS
1 parent e7d8d81 commit d87c014

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Controllers/Api/DownloadController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public function show(string $entityKey, ?string $instanceId = null)
1919
);
2020

2121
return response(
22-
Storage::disk($disk)->get($path), 200, [
22+
content: Storage::disk($disk)->get($path),
23+
headers: [
2324
'Content-Type' => Storage::disk($disk)->mimeType($path),
2425
'Content-Disposition' => 'attachment',
2526
],

0 commit comments

Comments
 (0)