diff --git a/package.json b/package.json index 8b1131e..d1aa3d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.19", + "version": "1.1.20", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/utils/post.js b/utils/post.js index 67cdac6..e315c07 100644 --- a/utils/post.js +++ b/utils/post.js @@ -69,7 +69,7 @@ module.exports = async function ({ key, query, database }) { method: "POST", headers: { "Content-Type": "application/json", - "Content-Length": reqPayload.length, + "Content-Length": Buffer.from(reqPayload).length, Authorization: key, }, port: 443,