If there are no range, request first 1MB

This commit is contained in:
mbaharip
2024-05-06 01:47:25 +07:00
parent 50b1ccec96
commit e1c2e09c9e
+1 -1
View File
@@ -43,7 +43,7 @@ export async function GET(
{
headers: {
"Accept-Ranges": "bytes",
"Range": request.headers.get("Range") || "bytes=0-",
"Range": request.headers.get("Range") || `bytes=0-${1024 * 1024 - 1}`,
},
},
);