1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-05-15 20:13:22 +00:00

Build issues resolved

This commit is contained in:
SUMUKHA-PK 2019-03-26 21:24:26 +05:30
parent f96350d0a8
commit 8d38784ec2

View file

@ -69,7 +69,7 @@ func (cli *Client) BuildBaseURL(urlPath ...string) string {
parts := []string{hsURL.Path}
parts = append(parts, urlPath...)
hsURL.Path = path.Join(parts...)
// Manually add the trailing slash back to the end of the path if it's explicitely needed
// Manually add the trailing slash back to the end of the path if it's explicitly needed
if strings.HasSuffix(urlPath[len(urlPath)-1], "/") {
hsURL.Path = hsURL.Path + "/"
}