Merge branch '42-attributeerror-nonetype-object-has-no-attribute-startswith' into 'master'

Resolve "AttributeError: 'NoneType' object has no attribute 'startswith'"

Closes #42

See merge request BeryJu.org/passbook!32
This commit is contained in:
Jens Langhammer 2019-11-01 12:53:43 +00:00
commit 0544864a3f
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class WSGILogger:
status_codes = [] status_codes = []
content_lengths = [] 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 # Don't log kubernetes health/readiness requests
return self.__healthcheck(start_response) return self.__healthcheck(start_response)