Permalink
Browse files

Merge pull request #454 from mafintosh/master

Destroy the response if present when destroying the request (clean merge)
  • Loading branch information...
2 parents 43d578d + b279277 commit 22423284dd8e7fcd14450909952cfad0394759e6 @mikeal mikeal committed Mar 2, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -1112,6 +1112,7 @@ Request.prototype.resume = function () {
}
Request.prototype.destroy = function () {
if (!this._ended) this.end()
+ else if (this.response) this.response.destroy()
}
// organize params for patch, post, put, head, del

0 comments on commit 2242328

Please sign in to comment.