mirror of https://github.com/zulip/zulip.git
tornado: Set an explicit SUPPORTED_METHODS.
This commit is contained in:
parent
0109658238
commit
875622fe57
|
@ -1,6 +1,6 @@
|
|||
import logging
|
||||
from contextlib import suppress
|
||||
from typing import Any, Dict, List, Optional
|
||||
from typing import Any, Collection, Dict, List, Optional
|
||||
from urllib.parse import unquote
|
||||
|
||||
import tornado.web
|
||||
|
@ -83,6 +83,8 @@ def finish_handler(handler_id: int, event_queue_id: str, contents: List[Dict[str
|
|||
class AsyncDjangoHandler(tornado.web.RequestHandler):
|
||||
handler_id: int
|
||||
|
||||
SUPPORTED_METHODS: Collection[str] = {"GET", "HEAD", "POST", "DELETE"} # type: ignore[assignment] # https://github.com/tornadoweb/tornado/pull/3354
|
||||
|
||||
@override
|
||||
def initialize(self, django_handler: base.BaseHandler) -> None:
|
||||
self.django_handler = django_handler
|
||||
|
|
Loading…
Reference in New Issue