From d9d0b5ccc86b6d0e18bd77240d10cd3d2aa214fa Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 13 Jul 2024 12:19:48 +0100 Subject: [PATCH] Bugfix --- utils/get.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/utils/get.js b/utils/get.js index c2a3788..7cd9cf6 100644 --- a/utils/get.js +++ b/utils/get.js @@ -5,8 +5,8 @@ * Imports * ============================================================================== */ -const http = require("http"); -const https = require("https"); +const http = require("node:http"); +const https = require("node:https"); const path = require("path"); const fs = require("fs"); const localGet = require("../engine/query/get"); @@ -113,11 +113,9 @@ async function get({ key, db, query, queryValues, tableName }) { }, port: localHostPort || 443, hostname: localHost || "datasquirel.com", - path: encodeURIComponent(path), + path: encodeURI(path), }; - console.log("scheme =>", scheme); - (scheme?.match(/^http$/i) ? http : https) .request( requestObject,