Fix range header, added on the wrong request

This commit is contained in:
mbaharip
2024-05-06 01:53:31 +07:00
parent e1c2e09c9e
commit 3c0a1fdc8e
+2 -1
View File
@@ -78,7 +78,8 @@ export async function GET(
responseType: "stream",
headers: {
"Accept-Ranges": "bytes",
"Range": ranges,
"Range":
ranges === "bytes=0-" ? `bytes=0-${1024 * 1024 - 1}` : ranges,
},
},
);