Commit bee1c3d0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use url.JoinPath in webserver.

parent 1c042b55
......@@ -360,16 +360,7 @@ func groupBase(r *http.Request) (string, error) {
return "", nil
}
if conf.ProxyURL != "" {
u, err := url.Parse(conf.ProxyURL)
if err != nil {
return "", err
}
base := url.URL{
Scheme: u.Scheme,
Host: u.Host,
Path: path.Join(u.Path, "/group/"),
}
return base.String(), nil
return url.JoinPath(conf.ProxyURL, "/group/")
}
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