Fix conflicting URLs for dehydrated devices. (#15180)

pull/15188/head
Patrick Cloke 2023-03-02 07:24:29 -05:00 committed by GitHub
parent 7ec1f096d3
commit 33a85cf08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/15180.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a bug introduced in Synapse 1.78.0 where requests to claim dehydrated devices would fail with a `405` error.

View File

@ -255,7 +255,7 @@ class DehydratedDeviceServlet(RestServlet):
""" """
PATTERNS = client_patterns("/org.matrix.msc2697.v2/dehydrated_device", releases=()) PATTERNS = client_patterns("/org.matrix.msc2697.v2/dehydrated_device$", releases=())
def __init__(self, hs: "HomeServer"): def __init__(self, hs: "HomeServer"):
super().__init__() super().__init__()