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,