2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Fix Headers in new replies

Needs to be a nested tuple.
This commit is contained in:
Jarrod Johnson 2020-05-13 16:53:36 -04:00
parent 7dcad26002
commit f85693b7e3

View File

@ -126,10 +126,10 @@ def handle_request(env, start_response):
if currprof != pending:
updates['deployment.profile'] = {'value': pending}
cfg.set_node_attributes({nodename: updates})
start_response('200 OK', ('Content-Type', 'text/plain'))
start_response('200 OK', (('Content-Type', 'text/plain'),))
yield 'OK'
else:
start_response('500 Error', ('Content-Type', 'text/plain'))
start_response('500 Error', (('Content-Type', 'text/plain'),))
yield 'No pending profile detected, unable to accept status update'
else:
start_response('404 Not Found', ())