Author: mtredinnick
Date: 2007-10-19 22:32:21 -0500 (Fri, 19 Oct 2007)
New Revision: 6537
Modified:
django/trunk/django/http/__init__.py
Log:
Changed HttpResponse.get() to lower case the header value before looking it up.
This makes it consistent will other header accesses. Fixed #5754, #5772.
Modified: django/trunk/django/http/__init__.py
===================================================================
--- django/trunk/django/http/__init__.py 2007-10-20 03:21:51 UTC (rev
6536)
+++ django/trunk/django/http/__init__.py 2007-10-20 03:32:21 UTC (rev
6537)
@@ -289,12 +289,12 @@
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)
+ return self._headers.get(header.lower(), alternate)
def set_cookie(self, key, value='', max_age=None, expires=None, path='/',
domain=None, secure=None):
self.cookies[key] = value
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---