crash in http_server on malformed json

This commit is contained in:
Max 2021-09-05 13:47:31 -04:00
parent 65b5c318b0
commit e080f32fc6
1 changed files with 1 additions and 0 deletions

View File

@ -219,6 +219,7 @@ def do_request(d):
def post_req(environ, start_response, postdata):
global my_input_q, my_output_q, my_recv_q, my_port
resp_msg = []
data = []
try:
data = json.loads(postdata)
except: