From 8864c0f5eef02b408de37b6ed7a0e9884e8dcde9 Mon Sep 17 00:00:00 2001 From: Chris Watson Date: Fri, 21 Mar 2025 14:55:01 -0600 Subject: [PATCH] (fix) double slash in path --- templates/cli/lib/client.js.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/cli/lib/client.js.twig b/templates/cli/lib/client.js.twig index 082b4de09..a7457ffdc 100644 --- a/templates/cli/lib/client.js.twig +++ b/templates/cli/lib/client.js.twig @@ -1,4 +1,5 @@ const os = require('os'); +const join = require('path').join; const https = require("https"); const { fetch, FormData, Agent } = require("undici"); const JSONbig = require("json-bigint")({ storeAsString: false }); @@ -96,7 +97,7 @@ class Client { async call(method, path = "", headers = {}, params = {}, responseType = "json") { headers = {...this.headers, ...headers}; - const url = new URL(this.endpoint + path); + const url = new URL(join(this.endpoint + path)); let body = undefined;