3
2
forked from Dniel97/artemis

fixing CXB render_POST

This commit is contained in:
Midorica 2023-11-07 22:40:15 -05:00
parent e88e1f82f8
commit a497a9806d

View File

@ -111,7 +111,10 @@ class CxbServlet(resource.Resource):
subcmd = "" subcmd = ""
req_url = request.uri.decode() req_url = request.uri.decode()
url_split = req_url.split("/") url_split = req_url.split("/")
req_bytes = request.content.getvalue() try:
req_bytes = request.content.getvalue()
except:
req_bytes = request.content.read().decode("utf-8")
try: try:
req_json: Dict = json.loads(req_bytes) req_json: Dict = json.loads(req_bytes)