mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Fix range header, added on the wrong request
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user