From f85693b7e324721e1698c59f9618489fc9e1fe96 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 13 May 2020 16:53:36 -0400 Subject: [PATCH] Fix Headers in new replies Needs to be a nested tuple. --- confluent_server/confluent/selfservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index 4e1a2648..4c4a176a 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -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', ())