summaryrefslogtreecommitdiff
path: root/django/http
diff options
context:
space:
mode:
Diffstat (limited to 'django/http')
-rw-r--r--django/http/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index 1de0ffb1df..1b80237290 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -274,6 +274,12 @@ class HttpResponse(object):
return self._headers.has_key(header.lower())
__contains__ = has_header
+
+ def items(self):
+ return self._headers.items()
+
+ def get(self, header, alternate):
+ return self._headers.get(header, alternate)
def set_cookie(self, key, value='', max_age=None, expires=None, path='/', domain=None, secure=None):
self.cookies[key] = value