Skip to content

Commit db229fa

Browse files
authored
Merge pull request #1188 from appwrite/revert-1056-fix-double-slash-issue
Revert "(fix) double slash in path"
2 parents c514fe6 + 4b2b929 commit db229fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/cli/lib/client.js.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const os = require('os');
2-
const join = require('path').join;
32
const https = require("https");
43
const { fetch, FormData, Agent } = require("undici");
54
const JSONbig = require("json-bigint")({ storeAsString: false });
@@ -100,7 +99,7 @@ class Client {
10099

101100
async call(method, path = "", headers = {}, params = {}, responseType = "json") {
102101
headers = {...this.headers, ...headers};
103-
const url = new URL(join(this.endpoint + path));
102+
const url = new URL(this.endpoint + path);
104103

105104
let body = undefined;
106105

0 commit comments

Comments
 (0)