We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9d354 commit cdc8ec3Copy full SHA for cdc8ec3
src/lib/request/adapters/http.ts
@@ -54,15 +54,15 @@ class HttpWritableStream extends Stream.Writable {
54
this.request.write(chunk, encoding, cb);
55
}
56
57
- end(chunk) {
58
- if (chunk) {
59
- this.request.write(chunk);
60
- } else {
61
- this.request.end();
62
- }
63
-
+ end(chunk?: any, encoding?: any, cb?: any): this {
+ super.end(chunk, encoding, cb);
64
return this;
65
+
+ _final(cb: (error?: Error | null | undefined) => void): void {
+ this.request.end();
+ cb();
+ }
66
67
68
/**
0 commit comments