[ZCM] [ZC] 1866/ 1 Request "304 responses should not have Content-Length header"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sun Aug 14 11:40:21 EDT 2005


Issue #1866 Update (Request) "304 responses should not have Content-Length header"
 Status Pending, ZServer/bug+solution medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1866

==============================================================
= Request - Entry #1 by jens on Aug 14, 2005 11:40 am

According to RFC 2616, 304 responses should not have a Content-Length header (and a few others Zope is sending, but this is strictly about content-length). While it is possible to prevent setting a content-length header in application code (such as in OFS.Image etc), ZServer.HTTPResponse is overly helpful and forces one if it does not exist.

The included patch and test (against the Zope 2.7 branch as of August 14th, 2005) fixes this and should apply cleanly against the Zope 2.8 branch and HEAD. Cannot test that right now because I am on dialup and svn.zope.org just hangs when I am trying to get it.

This report is an extension of a CMF collector report:

http://www.zope.org/Collectors/CMF/372

==============================================================



More information about the Zope-Collector-Monitor mailing list