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:
commit
0544864a3f
|
@ -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)
|
||||||
|
|
||||||
|
|
Reference in New Issue