light-my-request
Advanced tools
Comparing version 6.5.0 to 6.5.1
@@ -13,3 +13,4 @@ 'use strict' | ||
if (req._lightMyRequest?.payloadAsStream) { | ||
this._lightMyRequest = { headers: null, trailers: {}, stream: new Readable({ read () {} }) } | ||
const read = this.emit.bind(this, 'drain') | ||
this._lightMyRequest = { headers: null, trailers: {}, stream: new Readable({ read }) } | ||
const signal = req._lightMyRequest.signal | ||
@@ -16,0 +17,0 @@ |
{ | ||
"name": "light-my-request", | ||
"version": "6.5.0", | ||
"version": "6.5.1", | ||
"description": "Fake HTTP injection library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -112,3 +112,5 @@ 'use strict' | ||
expected = 'a' + buf.toString() | ||
res.end() | ||
res.on('drain', () => { | ||
res.end() | ||
}) | ||
} | ||
@@ -115,0 +117,0 @@ |
149736
4445