mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-04 17:28:49 -04:00
Remove unused OPTIONS handlers. (#8621)
The handling of OPTIONS requests was consolidated in #7534, but the endpoint specific handlers were not removed.
This commit is contained in:
parent
b19b63e6b4
commit
514a240aed
14 changed files with 2 additions and 64 deletions
|
@ -67,9 +67,6 @@ class ProfileDisplaynameRestServlet(RestServlet):
|
|||
|
||||
return 200, {}
|
||||
|
||||
def on_OPTIONS(self, request, user_id):
|
||||
return 200, {}
|
||||
|
||||
|
||||
class ProfileAvatarURLRestServlet(RestServlet):
|
||||
PATTERNS = client_patterns("/profile/(?P<user_id>[^/]*)/avatar_url", v1=True)
|
||||
|
@ -118,9 +115,6 @@ class ProfileAvatarURLRestServlet(RestServlet):
|
|||
|
||||
return 200, {}
|
||||
|
||||
def on_OPTIONS(self, request, user_id):
|
||||
return 200, {}
|
||||
|
||||
|
||||
class ProfileRestServlet(RestServlet):
|
||||
PATTERNS = client_patterns("/profile/(?P<user_id>[^/]*)", v1=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue