mirror of
https://github.com/django/daphne.git
synced 2025-06-28 17:03:03 +03:00
Fixed issue 272
This commit is contained in:
parent
fab6bd0536
commit
efee5e0d34
|
@ -1,4 +1,4 @@
|
||||||
import json
|
from django.core.serializers.json import json, DjangoJSONEncoder
|
||||||
|
|
||||||
from ..channel import Group, Channel
|
from ..channel import Group, Channel
|
||||||
from ..auth import channel_session_user_from_http
|
from ..auth import channel_session_user_from_http
|
||||||
|
@ -222,4 +222,4 @@ class WebsocketDemultiplexer(JsonWebsocketConsumer):
|
||||||
return {"text": json.dumps({
|
return {"text": json.dumps({
|
||||||
"stream": stream,
|
"stream": stream,
|
||||||
"payload": payload,
|
"payload": payload,
|
||||||
})}
|
}, cls=DjangoJSONEncoder)}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user