mirror of
https://github.com/HackPlan/node-iap.git
synced 2026-06-18 20:06:33 +08:00
finished implementation of code to follow documentation. Also made fixes as per pr comments
This commit is contained in:
@@ -29,11 +29,7 @@ module.exports = function (requestUrl, options, data, cb) {
|
||||
});
|
||||
|
||||
res.on('end', function () {
|
||||
if (res.statusCode !== 200) {
|
||||
return cb(new Error('Received ' + res.statusCode + ' status code with body: ' + responseData));
|
||||
}
|
||||
|
||||
cb(null, responseData);
|
||||
cb(null, res, responseData);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user