Skip to content

Commit

Permalink
Merge pull request #1958 from simov/fix-response-abort
Browse files Browse the repository at this point in the history
Use IncomingMessage.destroy method
  • Loading branch information
simov committed Dec 12, 2015
2 parents 23fa441 + d0b6112 commit 29fca98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.js
Expand Up @@ -1044,7 +1044,7 @@ Request.prototype.abort = function () {
self.req.abort()
}
else if (self.response) {
self.response.abort()
self.response.destroy()
}

self.emit('abort')
Expand Down

0 comments on commit 29fca98

Please sign in to comment.