Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion templates/cli/lib/client.js.twig
Original file line number Diff line number Diff line change
@@ -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 });
Expand Down Expand Up @@ -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;

Expand Down