crash in http_server on malformed json
This commit is contained in:
parent
65b5c318b0
commit
e080f32fc6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue