mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
appservice: fix building websocket url
Some checks failed
Some checks failed
This commit is contained in:
parent
fe541df217
commit
7dbc4dd16a
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import (
|
|||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path/filepath"
|
||||
"path"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
|
@ -374,7 +374,7 @@ func (as *AppService) StartWebsocket(ctx context.Context, baseURL string, onConn
|
|||
copiedURL := *as.hsURLForClient
|
||||
parsed = &copiedURL
|
||||
}
|
||||
parsed.Path = filepath.Join(parsed.Path, "_matrix/client/unstable/fi.mau.as_sync")
|
||||
parsed.Path = path.Join(parsed.Path, "_matrix/client/unstable/fi.mau.as_sync")
|
||||
if parsed.Scheme == "http" {
|
||||
parsed.Scheme = "ws"
|
||||
} else if parsed.Scheme == "https" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue