Kaydet (Commit) b6ec8d3a authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

Changed HttpResponse.get() to lower case the header value before looking it up.…

Changed HttpResponse.get() to lower case the header value before looking it up. This makes it consistent will other header accesses. Fixed #5754, #5772.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst ad91f688
......@@ -294,7 +294,7 @@ class HttpResponse(object):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment