2
0
镜像自地址 https://github.com/therootcompany/request.js 已同步 2025-07-06 14:46:31 +00:00

fix: register otherwise silent http response error

这个提交包含在:
AJ ONeal 2022-07-07 02:55:16 -06:00
父节点 bb30d5acf6
当前提交 3aac42d08b
签署人:: coolaj86
GPG 密钥 ID: 585419CA6DB0AA23

查看文件

@ -120,6 +120,9 @@ function handleResponse(resp, opts, cb) {
resp.body = '';
}
resp._bodyLength = 0;
resp.once('error', function (err) {
cb(err, resp, resp.body);
});
resp.on('readable', function () {
var chunk;
while ((chunk = resp.read())) {