Skip to content

Commit

Permalink
Use Path.posix to ensure we'll get forward slashes even on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosrealm committed Aug 14, 2024
1 parent 687b164 commit 3fed54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class CortexApiClient {
throw new Error("Request body too large");
}

const url = Path.join(this.apiUrl, this.apiVersion, "org", this.org, path);
const url = Path.posix.join(this.apiUrl, this.apiVersion, "org", this.org, path);
return fetch(url, {
method,
headers: {
Expand Down

0 comments on commit 3fed54b

Please sign in to comment.