Release v0.4.0 #110

Merged
lamacchinadesiderante merged 50 commits from develop into main 2024-05-27 19:05:12 +00:00
1 changed files with 11 additions and 1 deletions
Showing only changes of commit 7b1d712904 - Show all commits

View File

@ -28,6 +28,16 @@ export async function GET(req: Request, { params }: GetParams) {
responseType: "stream", responseType: "stream",
}); });
return new Response(response.data); const headers = new Headers();
headers.set('Content-Type', 'video/mp4');
headers.set('Cache-Control', 'no-cache');
headers.set('Accept-Ranges', 'bytes');
headers.set('Content-Length', response.headers['content-length']);
headers.set('Content-Disposition', 'inline');
return new Response(response.data, {
headers,
});
} }