Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3206 -- Fixed typo in [5407]. This time with bonus testing. Th…

…anks,

Manuel Saelices.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7de9f79969973c888fb7f21f2e4c9d17c155b153 1 parent 4d9ab54
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/middleware/common.py
View
2  django/middleware/common.py
@@ -75,7 +75,7 @@ def process_response(self, request, response):
# Use ETags, if requested.
if settings.USE_ETAGS:
etag = md5.new(response.content).hexdigest()
- if response.status_code >= 200 and response.status_code < 300 and response.statusrequest.META.get('HTTP_IF_NONE_MATCH') == etag:
+ if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag:
response = http.HttpResponseNotModified()
else:
response['ETag'] = etag
Please sign in to comment.
Something went wrong with that request. Please try again.