WIP
This commit is contained in:
parent
1ccfe97838
commit
3e07c62a6d
|
|
@ -1,6 +1,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import urllib
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
@ -279,7 +280,7 @@ class ClientWrapper(object):
|
||||||
if request.can_read_body:
|
if request.can_read_body:
|
||||||
# Get the payload
|
# Get the payload
|
||||||
print("Got a normal request: {}".format(request))
|
print("Got a normal request: {}".format(request))
|
||||||
content = await request.read()
|
content = urllib.parse.unquote(await request.read())
|
||||||
print(content)
|
print(content)
|
||||||
body_dict = json.loads(content)
|
body_dict = json.loads(content)
|
||||||
payload = body_dict["payload"]
|
payload = body_dict["payload"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue