Opened 10 years ago

Closed 10 years ago

#7234 closed (duplicate)

Processing of If-Modified-Since does not work

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


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 Changed 10 years ago by Romamo

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 Changed 10 years ago by Simon Greenhill

Resolution: duplicate
Status: newclosed

Dupe of #7046.

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