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

Allow clients to specify a server_name to avoid 'No known servers' #794

Merged
merged 1 commit into from
May 19, 2016
Merged
Changes from all 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
5 changes: 4 additions & 1 deletion synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ def on_POST(self, request, room_identifier, txn_id=None):

if RoomID.is_valid(room_identifier):
room_id = room_identifier
remote_room_hosts = None
try:
remote_room_hosts = request.args["server_name"]
except:
remote_room_hosts = None
elif RoomAlias.is_valid(room_identifier):
handler = self.handlers.room_member_handler
room_alias = RoomAlias.from_string(room_identifier)
Expand Down