http: do not destroy socket on error. see #257.
This commit is contained in:
parent
dfd63f12bb
commit
c7ce985648
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user