Author: mtredinnick
Date: 2007-06-02 02:55:41 -0500 (Sat, 02 Jun 2007)
New Revision: 5417

Modified:
   django/trunk/django/middleware/common.py
Log:
Fixed #3206 -- Fixed typo in [5407]. This time with bonus testing. Thanks,
Manuel Saelices.


Modified: django/trunk/django/middleware/common.py
===================================================================
--- django/trunk/django/middleware/common.py    2007-06-01 18:22:05 UTC (rev 
5416)
+++ django/trunk/django/middleware/common.py    2007-06-02 07:55:41 UTC (rev 
5417)
@@ -75,7 +75,7 @@
         # 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


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to