Merge pull request #38 from ByteInternet/dont-filter-false-from-claims
Don't filter all falsey claims.
This commit is contained in:
commit
8e13243e23
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class AbstractScopeClaims(object):
|
||||||
aux_dic = dic.copy()
|
aux_dic = dic.copy()
|
||||||
for key, value in iter(dic.items()):
|
for key, value in iter(dic.items()):
|
||||||
|
|
||||||
if not value:
|
if value is None or value == '':
|
||||||
del aux_dic[key]
|
del aux_dic[key]
|
||||||
elif type(value) is dict:
|
elif type(value) is dict:
|
||||||
aux_dic[key] = self._clean_dic(value)
|
aux_dic[key] = self._clean_dic(value)
|
||||||
|
|
Loading…
Reference in a new issue