Small fixes

This commit is contained in:
delvedor
2019-02-11 17:37:29 +01:00
parent dbe4557848
commit ecb2ba47a8
2 changed files with 10 additions and 9 deletions

View File

@ -185,6 +185,7 @@ class Transport {
// collect the payload
response.setEncoding('utf8')
response.on('data', chunk => { payload += chunk })
/* istanbul ignore next */
response.on('error', err => {
const error = new ConnectionError(err.message, params)
this.emit('response', error, meta)