From 7174c4d66693d909fb7e4e5b10962eb1a0e33dd6 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Tue, 23 May 2023 13:01:24 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/login-user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef8d6e2..019bb8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.24", + "version": "1.1.25", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/login-user.js b/users/login-user.js index 5431288..a42a182 100644 --- a/users/login-user.js +++ b/users/login-user.js @@ -105,7 +105,7 @@ module.exports = async function ({ key, payload, database, response, encryptionK method: "POST", headers: { "Content-Type": "application/json", - "Content-Length": reqPayload.length, + "Content-Length": Buffer.from(reqPayload).length, Authorization: key, }, port: 443,