root(minor): fallback to empty string if no Host header ise set
This commit is contained in:
@ -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 New Issue
Block a user