Skip to content

Commit

Permalink
fix(Node): fix invalid scheme fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Fab1o0107 committed Dec 27, 2023
1 parent 8d74cf1 commit 881aaef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class Node {
if (this.state === State.Connected) return undefined;

const version = await (
await fetch(`${this.url}/version`, {
await fetch(`${this.url.replace("ws", "http")}/version`, {
headers: { Authorization: this.authorization, "User-Agent": this.manager.options.userAgent }
})
).text();
Expand Down

0 comments on commit 881aaef

Please sign in to comment.