[zope2-tracker] [Bug 599378] [NEW] HTTPResponse not using accumulated headers correctly
Nathan Van Gheem
vangheem at gmail.com
Mon Jun 28 10:15:06 EDT 2010
Public bug reported:
In testing Zope 2.13.0a1, I noticed an issue when attempting to upgrade
a plone 3.3.5 site.
In the file, ZServer/HTTPResponse.py there is the line
>>> headers = headers.items()
>>> for line in self.accumulated_headers:
>>> if line[0] == '\t':
>>> headers[-1][1] += '\n' + line
>>> continue
>>> headers.append(line.split(': ', 1))
The problem is that accumulated_headers is a tuple of name, values for
the headers. So this sort of thing should actually be,
>>> headers = headers.items()
>>> headers.extend(self.accumulated_headers)
Before testing the upgrade, the site worked fine. It must be that the
accumulated_headers is not used often and the bug just never surfaced.
Perhaps I could be missing something though.
** Affects: zope2
Importance: Undecided
Status: New
--
HTTPResponse not using accumulated headers correctly
https://bugs.launchpad.net/bugs/599378
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker
mailing list