mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-31 03:54:36 -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
|
@ -30,9 +30,6 @@ class LogoutRestServlet(RestServlet):
|
|||
self._auth_handler = hs.get_auth_handler()
|
||||
self._device_handler = hs.get_device_handler()
|
||||
|
||||
def on_OPTIONS(self, request):
|
||||
return 200, {}
|
||||
|
||||
async def on_POST(self, request):
|
||||
requester = await self.auth.get_user_by_req(request, allow_expired=True)
|
||||
|
||||
|
@ -58,9 +55,6 @@ class LogoutAllRestServlet(RestServlet):
|
|||
self._auth_handler = hs.get_auth_handler()
|
||||
self._device_handler = hs.get_device_handler()
|
||||
|
||||
def on_OPTIONS(self, request):
|
||||
return 200, {}
|
||||
|
||||
async def on_POST(self, request):
|
||||
requester = await self.auth.get_user_by_req(request, allow_expired=True)
|
||||
user_id = requester.user.to_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue