mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +01:00
Don't use url.JoinPath.
It was introduced in Go 1.19.
This commit is contained in:
parent
5d220f59ee
commit
10c57c7596
1 changed files with 6 additions and 1 deletions
|
@ -342,7 +342,12 @@ func groupBase(r *http.Request) (string, error) {
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return u.JoinPath("/group/").String(), nil
|
||||
base := url.URL{
|
||||
Scheme: u.Scheme,
|
||||
Host: u.Host,
|
||||
Path: path.Join(u.Path, "/group/"),
|
||||
}
|
||||
return base.String(), nil
|
||||
}
|
||||
scheme := "https"
|
||||
if r.TLS == nil {
|
||||
|
|
Loading…
Reference in a new issue