Message108042
The current (3.x) implementation of wsgiref.headers.Headers() does not match the documentation.
Documented behaviour:
"Any changes made to the new Headers object will directly update the headers list it was created with." (/Doc/library/wsgiref.rst)
Actual behaviour:
The initial headers list is not updated.
The error was introduced with revision 68205. See http://svn.python.org/view/python/branches/py3k/Lib/wsgiref/headers.py?view=diff&r1=68204&r2=68205
Revision 68204::
>>> from wsgiref.headers import Headers
>>> l = []
>>> h = Headers(l)
>>> h.add_header('Test','Test')
>>> l
[('Test', 'Test')]
Revision 68205::
>>> from wsgiref.headers import Headers
>>> l = []
>>> h = Headers(l)
>>> h.add_header('Test','Test')
>>> l
[] |
|
Date |
User |
Action |
Args |
2010-06-17 18:34:17 | Marcel.Hellkamp | set | recipients:
+ Marcel.Hellkamp |
2010-06-17 18:34:17 | Marcel.Hellkamp | set | messageid: <1276799657.02.0.296941207361.issue9019@psf.upfronthosting.co.za> |
2010-06-17 18:34:15 | Marcel.Hellkamp | link | issue9019 messages |
2010-06-17 18:34:15 | Marcel.Hellkamp | create | |
|