mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
cleanup
This commit is contained in:
parent
0d6bc0a0ad
commit
e6bf7da08d
1 changed files with 1 additions and 4 deletions
|
|
@ -31,10 +31,7 @@ export async function GET({ params: { platform } }: APIEvent) {
|
|||
const downloadName = downloadNames[platform]
|
||||
|
||||
const headers = new Headers(resp.headers)
|
||||
if (downloadName) {
|
||||
// Remove hardcoded file name
|
||||
headers.set("content-disposition", `attachment; filename="${downloadName}"`)
|
||||
}
|
||||
if (downloadName) headers.set("content-disposition", `attachment; filename="${downloadName}"`)
|
||||
|
||||
return new Response(resp.body, { ...resp, headers })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue