Skip to content

Commit

Permalink
chore(Api): Remove unnecessary double slashes (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacmard committed Aug 7, 2021
1 parent f12cea6 commit 924f089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structs/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class Api extends EventEmitter {
if (this.options.token) headers.set("Authorization", this.options.token);
if (method !== "GET") headers.set("Content-Type", "application/json");

let url = `https://top.gg/api/${path}`;
let url = `https://top.gg/api${path}`;

if (body && method === "GET") url += `?${new URLSearchParams(body)}`;

Expand Down

0 comments on commit 924f089

Please sign in to comment.