From 75d40adede2d429102417547637322909d095826 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Mon, 22 May 2023 11:43:42 +0100 Subject: [PATCH] updates --- package.json | 2 +- utils/post.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,