mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 18:59:06 +00:00
Explicitly provide content-length 0 on 204
For some vintages of eventlet+apache, this is required to avoid invalid responses from the server.
This commit is contained in:
parent
93d4847763
commit
49b69a2e19
@ -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', ())
|
||||
|
Loading…
x
Reference in New Issue
Block a user