mirror of
https://github.com/element-hq/synapse.git
synced 2025-04-08 19:13:59 +00:00
rstrip slashes from url on appservice (#6306)
This commit is contained in:
parent
020add5099
commit
42e707c663
2 changed files with 4 additions and 1 deletions
1
changelog.d/6306.bugfix
Normal file
1
changelog.d/6306.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Appservice requests will no longer contain a double slash prefix when the appservice url provided ends in a slash.
|
|
@ -94,7 +94,9 @@ class ApplicationService(object):
|
|||
ip_range_whitelist=None,
|
||||
):
|
||||
self.token = token
|
||||
self.url = url
|
||||
self.url = (
|
||||
url.rstrip("/") if isinstance(url, str) else None
|
||||
) # url must not end with a slash
|
||||
self.hs_token = hs_token
|
||||
self.sender = sender
|
||||
self.server_name = hostname
|
||||
|
|
Loading…
Add table
Reference in a new issue