forked from pothtonswer/discordmuffin
Fix issue with trailing slashes in MacOS (#292)
* Fix issue with trailing slashes in MacOS
This commit is contained in:
parent
20d230cd04
commit
d726f93375
1 changed files with 7 additions and 0 deletions
|
@ -1559,6 +1559,13 @@ func (s *Session) Gateway() (gateway string, err error) {
|
|||
}
|
||||
|
||||
gateway = temp.URL
|
||||
|
||||
// Ensure the gateway always has a trailing slash.
|
||||
// MacOS will fail to connect if we add query params without a trailing slash on the base domain.
|
||||
if !strings.HasSuffix(gateway, "/") {
|
||||
gateway += "/"
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue