Put correct mime-type
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 19s
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 19s
This commit is contained in:
parent
f080ccc912
commit
a4bec2cb38
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export const GET: RequestHandler = async ({ url }) => {
|
||||||
// Stream video/audio
|
// Stream video/audio
|
||||||
return new Response(streamYouTube(link, format), {
|
return new Response(streamYouTube(link, format), {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'text/event-stream',
|
'Content-Type': `${mimeTypeMap.get(format)}`,
|
||||||
'Content-Disposition': `attachment; filename="${filename}"`,
|
'Content-Disposition': `attachment; filename="${filename}"`,
|
||||||
'Set-Cookie': 'downloading=0'
|
'Set-Cookie': 'downloading=0'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue