diff --git a/index.js b/index.js index 527821f..4a7cb27 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,10 @@ const fetch = (url, obj, callback) => { [obj.caseSensitiveHeaders ? key : key.toLowerCase()]: obj.headers[key] }), {}) } - + + if (obj.body && typeof obj.body === "object") { + obj.body = JSON.stringify(body); + } RNSslPinning.fetch(url, obj, (err, res) => { if (err && typeof err != 'object') {