Ticket #4994: common-middleware-fix.patch
File common-middleware-fix.patch, 639 bytes (added by , 17 years ago) |
---|
-
django/middleware/common.py
80 80 else: 81 81 etag = md5.new(response.content).hexdigest() 82 82 if response.status_code >= 200 and response.status_code < 300 and request.META.get('HTTP_IF_NONE_MATCH') == etag: 83 oldCookies = response.cookies 83 84 response = http.HttpResponseNotModified() 85 response.cookies = oldCookies 84 86 else: 85 87 response['ETag'] = etag 86 88