http: do not destroy socket on error. see #257.

This commit is contained in:
Christopher Jeffrey 2017-07-31 18:52:33 -07:00
parent dfd63f12bb
commit c7ce985648
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1443,13 +1443,6 @@ Response.prototype.error = function error(code, err) {
code: err.code
}
});
try {
this.req.destroy();
this.req.socket.destroy();
} catch (e) {
;
}
};
Response.prototype.redirect = function redirect(code, url) {