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:
parent
f96350d0a8
commit
8d38784ec2
1 changed files with 1 additions and 1 deletions
|
@ -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 + "/"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue