Put correct mime-type
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 19s

This commit is contained in:
0d0 2025-02-28 07:47:42 +01:00
parent f080ccc912
commit a4bec2cb38

View file

@ -59,7 +59,7 @@ export const GET: RequestHandler = async ({ url }) => {
// Stream video/audio
return new Response(streamYouTube(link, format), {
headers: {
'Content-Type': 'text/event-stream',
'Content-Type': `${mimeTypeMap.get(format)}`,
'Content-Disposition': `attachment; filename="${filename}"`,
'Set-Cookie': 'downloading=0'
}