Skip to content

Commit

Permalink
Merge pull request #2163 from h3poteto/fix/trailing-slash
Browse files Browse the repository at this point in the history
Remove trailing slash from pleroma web socket URI
  • Loading branch information
h3poteto authored Mar 8, 2024
2 parents b69b7a2 + cbbce47 commit 37ca459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megalodon/src/pleroma/web_socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37ca459

Please sign in to comment.