Commit 10c57c75 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't use url.JoinPath.

It was introduced in Go 1.19.
parent 5d220f59
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment