mirror of
https://github.com/HackPlan/node-iap.git
synced 2026-01-12 22:44:35 +08:00
Possible was meant "options" instead of "data"?
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user