From 063fd80bedb426255c040efe17625579cecfec84 Mon Sep 17 00:00:00 2001 From: nkuznetsov Date: Tue, 7 Oct 2014 12:45:47 +0600 Subject: [PATCH 1/2] Possible was meant "options" instead of "data"? --- lib/https/post.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/https/post.js b/lib/https/post.js index f3114f3..8b061cb 100644 --- a/lib/https/post.js +++ b/lib/https/post.js @@ -14,8 +14,8 @@ module.exports = function (url, options, cb) { 'content-type': 'application/x-www-form-urlencoded', 'content-length': Buffer.byteLength(data) }; - } else if (data.json) { - data = JSON.stringify(data.json); + } else if (options.json) { + data = JSON.stringify(options.json); options.headers = { 'content-type': 'application/json', 'content-length': Buffer.byteLength(data) From e694efd39d5c4ea9ce480bb583b26b4db6c0ea38 Mon Sep 17 00:00:00 2001 From: nkuznetsow Date: Tue, 7 Oct 2014 13:04:27 +0600 Subject: [PATCH 2/2] Update index.js --- lib/apple/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apple/index.js b/lib/apple/index.js index 19b0977..2d82933 100644 --- a/lib/apple/index.js +++ b/lib/apple/index.js @@ -88,7 +88,7 @@ exports.verifyPayment = function (payment, cb) { } - function checkReceipt(error, resultString) { + function checkReceipt(error, result) { if (error) { return cb(error); }