zope.publisher sets Content-Length header for 304 Not Modified

Bug #235779 reported by Christian Zagrodnick
2
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.publisher
Invalid
Undecided
Unassigned

Bug Description

For a Not Modified status there should not be a content-length header, because there is no content.

Currently there is "Content-Length: 0" spit out which (for instance) let's wget fetch the page again because "length changed".

Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Tres Seaver (tseaver) wrote :

Workaround is to pass a non-string result (one implementing IResult) to such `setResult`.

Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.publisher project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.publisher.

Changed in zope.publisher:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.