Opened 7 years ago

Closed 7 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:

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

  • Has patch unset
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

In addition line 26 must be extended to

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

comment:2 Changed 7 years ago by Simon Greenhill

  • Resolution set to duplicate
  • Status changed from new to closed

Dupe of #7046.

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