From 49b69a2e19a5bb6e32e6dca09195c551155d0f30 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 25 May 2021 10:18:13 -0400 Subject: [PATCH] Explicitly provide content-length 0 on 204 For some vintages of eventlet+apache, this is required to avoid invalid responses from the server. --- confluent_server/confluent/selfservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/selfservice.py b/confluent_server/confluent/selfservice.py index 117e5697..8a87b682 100644 --- a/confluent_server/confluent/selfservice.py +++ b/confluent_server/confluent/selfservice.py @@ -302,7 +302,7 @@ def handle_request(env, start_response): elif env['PATH_INFO'].startswith('/self/remoteconfig/status'): rst = runansible.running_status.get(nodename, None) if not rst: - start_response('204 Not Running', ()) + start_response('204 Not Running', (('Content-Length', '0'),)) yield '' return start_response('200 OK', ())