Opened 16 years ago

Closed 16 years ago

#7234 closed (duplicate)

Processing of If-Modified-Since does not work

Reported by: Romamo Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have found a bug in django.middleware.http.ConditionalGetMiddleware
Lines 22 and 29
Instead of

response.status = 304

must be

response.status_code = 304

Change History (2)

comment:1 by Romamo, 16 years ago

Has patch: unset

In addition line 26 must be extended to

if if_modified_since and if_modified_since.partition(';')[0] == responseLast-Modified:

comment:2 by Simon Greenhill, 16 years ago

Resolution: duplicate
Status: newclosed

Dupe of #7046.

Note: See TracTickets for help on using tickets.
Back to Top