mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)
This commit is contained in:
parent
8aa0f9fe95
commit
bd29004831
8 changed files with 22 additions and 10 deletions
|
|
@ -37,5 +37,5 @@ export async function GET({ params: { platform, channel } }: APIEvent) {
|
|||
const headers = new Headers(resp.headers)
|
||||
if (downloadName) headers.set("content-disposition", `attachment; filename="${downloadName}"`)
|
||||
|
||||
return new Response(resp.body, { ...resp, headers })
|
||||
return new Response(resp.body, { status: resp.status, statusText: resp.statusText, headers })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue