We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f9eb8a + 36ce276 commit 4cf7ef4Copy full SHA for 4cf7ef4
1 file changed
src/core/streaming/cachedStreamFetcher.ts
@@ -235,6 +235,9 @@ export class CachedStreamFetcher implements Fetcher {
235
.then((result) => {
236
if (!result.done) {
237
this.chunks.push(result.value);
238
+ } else if (this.contentLength === null) {
239
+ // Entire stream finished but had no Content-Length header; treat full cache as total length
240
+ this.contentLength = this.size;
241
}
242
return result;
243
})
0 commit comments