diff --git a/src/vfs-http-worker.ts b/src/vfs-http-worker.ts index 1153b27..4c7544b 100644 --- a/src/vfs-http-worker.ts +++ b/src/vfs-http-worker.ts @@ -65,7 +65,7 @@ const backendAsyncMethods: return { url: msg.url, id: nextId++, - size: BigInt(head.headers.get('Content-Length')), + size: BigInt(head.headers.get('Content-Length') ?? 0), // This will be determined on the first read pageSize: null };