Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rstrip slashes from url on appservice #6306

Merged
merged 6 commits into from
Oct 31, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/6306.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Appservice requests will no longer contain a double slash prefix when the appservice url provided ends in a slash.
2 changes: 1 addition & 1 deletion synapse/appservice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(
ip_range_whitelist=None,
):
self.token = token
self.url = url
self.url = url.rstrip("/") # url must not end with a slash
self.hs_token = hs_token
self.sender = sender
self.server_name = hostname
Expand Down