Skip to content

Commit 7e631dc

Browse files
committed
bug fix
1 parent 674b1d4 commit 7e631dc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/resumable-upload.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,12 +1063,6 @@ export class Upload extends Writable {
10631063
} else {
10641064
headers['Content-Range'] = `bytes ${this.offset}-*/${this.contentLength}`;
10651065

1066-
// Buffer the entire upload to calculate the hash before sending.
1067-
for await (const chunk of this.upstreamIterator(expectedUploadSize)) {
1068-
this.#addLocalBufferCache(chunk);
1069-
}
1070-
this.prependLocalBufferToUpstream();
1071-
10721066
if (this.#hashValidator) {
10731067
this.#hashValidator.end();
10741068
}

0 commit comments

Comments
 (0)