This commit is contained in:
Tben 2023-05-22 11:52:27 +01:00
parent 75d40adede
commit ee7bc45412
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "datasquirel", "name": "datasquirel",
"version": "1.1.20", "version": "1.1.21",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -49,7 +49,7 @@ module.exports = async function ({ key, payload, database }) {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": reqPayload.length, "Content-Length": Buffer.from(reqPayload).length,
Authorization: key, Authorization: key,
}, },
port: 443, port: 443,

View File

@ -49,7 +49,7 @@ module.exports = async function ({ key, payload, database }) {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": reqPayload.length, "Content-Length": Buffer.from(reqPayload).length,
Authorization: key, Authorization: key,
}, },
port: 443, port: 443,

View File

@ -53,7 +53,7 @@ module.exports = async function ({ key, payload }) {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",
"Content-Length": reqPayload.length, "Content-Length": Buffer.from(reqPayload).length,
Authorization: key, Authorization: key,
}, },
port: 443, port: 443,