From cbbce47ac242d2926ee4af09d376d26d5d0d8d04 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Fri, 8 Mar 2024 21:45:10 +0900
Subject: [PATCH] Remove trailing slash from pleroma web socket URI
---
megalodon/src/pleroma/web_socket.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/megalodon/src/pleroma/web_socket.ts b/megalodon/src/pleroma/web_socket.ts
index ae198cf3..4a07cac0 100644
--- a/megalodon/src/pleroma/web_socket.ts
+++ b/megalodon/src/pleroma/web_socket.ts
@@ -154,7 +154,7 @@ export default class WebSocket extends EventEmitter implements WebSocketInterfac
if (accessToken !== null) {
parameter.push(`access_token=${accessToken}`)
}
- const requestURL: string = `${url}/?${parameter.join('&')}`
+ const requestURL: string = `${url}?${parameter.join('&')}`
if (isBrowser()) {
// This is browser.
// We can't pass options when browser: https://github.com/heineiuo/isomorphic-ws#limitations