summaryrefslogtreecommitdiff
path: root/urllib3/_collections.py
diff options
context:
space:
mode:
Diffstat (limited to 'urllib3/_collections.py')
-rw-r--r--urllib3/_collections.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/urllib3/_collections.py b/urllib3/_collections.py
index 77cee017..9edce3c9 100644
--- a/urllib3/_collections.py
+++ b/urllib3/_collections.py
@@ -272,6 +272,9 @@ class HTTPHeaderDict(MutableMapping):
getallmatchingheaders = getlist
iget = getlist
+ def get_all(self, key, failobj=None):
+ return self.getlist(key) or failobj
+
def __repr__(self):
return "%s(%s)" % (type(self).__name__, dict(self.itermerged()))