Skip to content

Commit 6c24d85

Browse files
committed
fix: Trim trailing slash from telemetry endpoint
1 parent e53bb48 commit 6c24d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/telemetry/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class TelemetryClient {
2929
}: TelemetryClientOptions = {}) {
3030
this.#queue = new Queue()
3131
this.#anonymousId = uuidv4()
32-
this.#endpoint = endpoint
32+
this.#endpoint = endpoint.endsWith('/') ? endpoint.slice(0, -1) : endpoint
3333
this.#debug = debug
3434
this.#disabled = disabled
3535
}

0 commit comments

Comments
 (0)