mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -289,12 +289,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) | ||||
|         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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user