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;