From 0ec9e21de677cc8ab8c98a8bc7b8686a2722fac8 Mon Sep 17 00:00:00 2001 From: hpx7 Date: Thu, 8 Jul 2021 17:55:56 +0000 Subject: [PATCH] Use body instead of form for post request --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index de3f103..44b9d6a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -19,7 +19,7 @@ module.exports.create = function(config) { 'Content-Type': 'application/json' }, json: true, - form: form + body: form }; return request(req).then(function(resp) { if (2 !== Math.floor(resp.statusCode / 100)) {