diff options
Diffstat (limited to 'ext/node/polyfills/_http_outgoing.ts')
-rw-r--r-- | ext/node/polyfills/_http_outgoing.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/_http_outgoing.ts b/ext/node/polyfills/_http_outgoing.ts index a6edc1144..41a1d844d 100644 --- a/ext/node/polyfills/_http_outgoing.ts +++ b/ext/node/polyfills/_http_outgoing.ts @@ -542,7 +542,7 @@ export class OutgoingMessage extends Stream { if (data instanceof Buffer) { data = new Uint8Array(data.buffer, data.byteOffset, data.byteLength); } - if (data.buffer.byteLength > 0) { + if (data.byteLength > 0) { this._bodyWriter.write(data).then(() => { callback?.(); this.emit("drain"); |