Fix request GET/POST format

This commit is contained in:
Andrew Godwin 2015-08-04 23:54:10 +01:00
parent 5264e7a416
commit feb3017c0e

View File

@ -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,