mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
python: Replace ujson with orjson.
Fixes #6507. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
123790a72d
commit
61d0417e75
@@ -1,7 +1,7 @@
|
||||
import time
|
||||
from typing import Iterable, Optional, Sequence
|
||||
|
||||
import ujson
|
||||
import orjson
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
@@ -22,7 +22,7 @@ from zerver.tornado.handlers import AsyncDjangoHandler
|
||||
|
||||
@internal_notify_view(True)
|
||||
def notify(request: HttpRequest) -> HttpResponse:
|
||||
process_notification(ujson.loads(request.POST['data']))
|
||||
process_notification(orjson.loads(request.POST['data']))
|
||||
return json_success()
|
||||
|
||||
@has_request_variables
|
||||
|
||||
Reference in New Issue
Block a user