app/django/middleware/http.py
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
--- a/app/django/middleware/http.py	Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/middleware/http.py	Tue Oct 14 16:00:59 2008 +0000
@@ -19,14 +19,14 @@
                 # Setting the status is enough here. The response handling path
                 # automatically removes content for this status code (in
                 # http.conditional_content_removal()).
-                response.status = 304
+                response.status_code = 304
 
         if response.has_header('Last-Modified'):
             if_modified_since = request.META.get('HTTP_IF_MODIFIED_SINCE', None)
             if if_modified_since == response['Last-Modified']:
                 # Setting the status code is enough here (same reasons as
                 # above).
-                response.status = 304
+                response.status_code = 304
 
         return response