summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/mail/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/mail/utils.py')
-rw-r--r--src/leap/bitmask/mail/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/bitmask/mail/utils.py b/src/leap/bitmask/mail/utils.py
index 64fca981..d5128573 100644
--- a/src/leap/bitmask/mail/utils.py
+++ b/src/leap/bitmask/mail/utils.py
@@ -373,3 +373,8 @@ class CaseInsensitiveDict(dict):
def __getitem__(self, key):
return super(CaseInsensitiveDict, self).__getitem__(key.lower())
+
+ def get(self, key, default=None):
+ if key.lower() in self:
+ return self[key]
+ return default