Ticket #3206: common.py.patch
File common.py.patch, 682 bytes (added by , 17 years ago) |
---|
-
common.py
75 75 # Use ETags, if requested. 76 76 if settings.USE_ETAGS: 77 77 etag = md5.new(response.content).hexdigest() 78 if response.status_code >= 200 and response.status_code < 300 and re sponse.statusrequest.META.get('HTTP_IF_NONE_MATCH') == etag:78 if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag: 79 79 response = http.HttpResponseNotModified() 80 80 else: 81 81 response['ETag'] = etag