mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
If there are no range, request first 1MB
This commit is contained in:
@@ -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}`,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user