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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user