mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Fix request GET/POST format
This commit is contained in:
parent
5264e7a416
commit
feb3017c0e
|
@ -8,8 +8,8 @@ def encode_request(request):
|
||||||
"""
|
"""
|
||||||
# TODO: More stuff
|
# TODO: More stuff
|
||||||
value = {
|
value = {
|
||||||
"GET": list(request.GET.items()),
|
"GET": list(request.GET.lists()),
|
||||||
"POST": list(request.POST.items()),
|
"POST": list(request.POST.lists()),
|
||||||
"COOKIES": request.COOKIES,
|
"COOKIES": request.COOKIES,
|
||||||
"META": {k: v for k, v in request.META.items() if not k.startswith("wsgi")},
|
"META": {k: v for k, v in request.META.items() if not k.startswith("wsgi")},
|
||||||
"path": request.path,
|
"path": request.path,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user