Django

Code

Changeset 7793

Show
Ignore:
Timestamp:
06/30/08 02:03:58 (2 months ago)
Author:
mtredinnick
Message:

Fixed #7046 -- set the response status code correctly in ConditionalGetMiddleware?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/middleware/http.py

    r6662 r7793  
    2020                # automatically removes content for this status code (in 
    2121                # http.conditional_content_removal()). 
    22                 response.status = 304 
     22                response.status_code = 304 
    2323 
    2424        if response.has_header('Last-Modified'): 
     
    2727                # Setting the status code is enough here (same reasons as 
    2828                # above). 
    29                 response.status = 304 
     29                response.status_code = 304 
    3030 
    3131        return response