Skip to content

Commit

Permalink
Add body property to resp when we have it as a shorthand. fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jul 21, 2011
1 parent a10b6e4 commit b9aff1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ Request.prototype.request = function () {
buffer += chunk;
})
options.on("end", function () {
response.body = buffer;
options.callback(null, response, buffer);
})
;
Expand Down

0 comments on commit b9aff1f

Please sign in to comment.