root(minor): fallback to empty string if no Host header ise set
This commit is contained in:
parent
e862b97005
commit
0b9fc9e444
|
@ -30,7 +30,7 @@ class WSGILogger:
|
|||
status_codes = []
|
||||
content_lengths = []
|
||||
|
||||
if environ.get('HTTP_HOST').startswith('kubernetes-healthcheck-host'):
|
||||
if environ.get('HTTP_HOST', '').startswith('kubernetes-healthcheck-host'):
|
||||
# Don't log kubernetes health/readiness requests
|
||||
return self.__healthcheck(start_response)
|
||||
|
||||
|
|
Reference in a new issue