Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed HttpResponse.get() to lower case the header value before look…

…ing 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
  • Loading branch information...
commit b6ec8d3a9ef9315a947535bf99f5e92ae40ce99e 1 parent ad91f68
Malcolm Tredinnick authored October 20, 2007

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/http/__init__.py
6  django/http/__init__.py
@@ -289,12 +289,12 @@ def has_header(self, header):
289 289
         return self._headers.has_key(header.lower())
290 290
 
291 291
     __contains__ = has_header
292  
-    
  292
+
293 293
     def items(self):
294 294
         return self._headers.items()
295  
-    
  295
+
296 296
     def get(self, header, alternate):
297  
-        return self._headers.get(header, alternate)
  297
+        return self._headers.get(header.lower(), alternate)
298 298
 
299 299
     def set_cookie(self, key, value='', max_age=None, expires=None, path='/', domain=None, secure=None):
300 300
         self.cookies[key] = value

0 notes on commit b6ec8d3

Please sign in to comment.
Something went wrong with that request. Please try again.