mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
account for timeout
This commit is contained in:
parent
fa940579f1
commit
db381d377b
@ -394,7 +394,9 @@ def handle_api_request(url, env, start_response, username, cfm, headers, reqbody
|
||||
username = username.encode('utf8')
|
||||
req = json.loads(reqbody)
|
||||
rsp = authentication_response(req, username)
|
||||
if start_response:
|
||||
if rsp == 'Timeout':
|
||||
start_response('408 Timeout', headers)
|
||||
elif rsp['verified'] and start_response:
|
||||
start_response('200 OK', headers)
|
||||
sessinfo = {'username': username}
|
||||
if 'authtoken' in authorized:
|
||||
|
Loading…
Reference in New Issue
Block a user