Skip to content

Commit f2e249c

Browse files
committed
fix(upload): Write after end during upload
1 parent 5aa1d1b commit f2e249c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/request/adapters/http.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ class HttpWritableStream extends Stream.Writable {
5757
end(chunk) {
5858
if (chunk) {
5959
this.request.write(chunk);
60+
} else {
61+
this.request.end();
6062
}
6163

62-
this.request.end();
6364
return this;
6465
}
6566
}

0 commit comments

Comments
 (0)