Skip to content

Commit 17d52a0

Browse files
authored
Remove an empty header in /healthz (#19)
See golang/go#63168 for the background. With this empty header, net/http will complain. Depending on the Go version that is used in the health checker, this causes the health status to fail.
1 parent 3a56dcc commit 17d52a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

celerymon/cli/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def healthz_wrapper(
6262
args.healthz_unhealthy_threshold_sec,
6363
)
6464
if stat == "":
65-
start_response("200 OK", [("", "")])
65+
start_response("200 OK", [])
6666
return [b"OK"]
67-
start_response("500 Internal Server Error", [("", "")])
67+
start_response("500 Internal Server Error", [])
6868
return [stat.encode("utf-8")]
6969

7070
return prom_app(environ, start_response)

0 commit comments

Comments
 (0)