Django

Code

Ticket #7234 (closed: duplicate)

Opened 2 months ago

Last modified 3 weeks ago

Processing of If-Modified-Since does not work

Reported by: Romamo Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

Attachments

Change History

05/14/08 23:17:23 changed by Romamo

  • needs_better_patch changed.
  • has_patch deleted.
  • needs_tests changed.
  • needs_docs changed.

In addition line 26 must be extended to

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

06/14/08 08:05:53 changed by Simon Greenhill

  • status changed from new to closed.
  • resolution set to duplicate.

Dupe of #7046.


Add/Change #7234 (Processing of If-Modified-Since does not work)




Change Properties
Action