Ticket #7046: 7046.diff
File 7046.diff, 951 bytes (added by , 16 years ago) |
---|
-
django_src/django/middleware/http.py
19 19 # Setting the status is enough here. The response handling path 20 20 # automatically removes content for this status code (in 21 21 # http.conditional_content_removal()). 22 response.status = 30422 response.status_code = 304 23 23 24 24 if response.has_header('Last-Modified'): 25 25 if_modified_since = request.META.get('HTTP_IF_MODIFIED_SINCE', None) 26 26 if if_modified_since == response['Last-Modified']: 27 27 # Setting the status code is enough here (same reasons as 28 28 # above). 29 response.status = 30429 response.status_code = 304 30 30 31 31 return response 32 32