Skip to content

Commit 5e39c7b

Browse files
committed
fixup
1 parent 68320ff commit 5e39c7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/api/api-request.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ class RequestHandler extends AsyncResource {
166166
if (body) {
167167
this.body = null
168168
util.destroy(body, err)
169+
170+
if (err && util.isStream(body)) {
171+
body.on('error', () => {})
172+
}
169173
}
170174

171175
if (this.removeAbortListener) {

0 commit comments

Comments
 (0)