Changed the value promises with resolved with. Instead of receiving an object with both the body and status code attached, they will simply receive the body.

This commit is contained in:
spencer alger
2013-12-22 11:42:51 -07:00
parent d949ac940a
commit 460f708a29

View File

@ -247,10 +247,7 @@ Transport.prototype.request = function (params, cb) {
err.status = status;
defer.reject(err);
} else {
defer.resolve({
body: parsedBody,
status: status
});
defer.resolve(parsedBody);
}
}