This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients pje, tarek
Date 2009-04-20.16:01:03
SpamBayes Score 0.00453885
Marked as misclassified No
Message-id <1240243265.38.0.0946630520568.issue5800@psf.upfronthosting.co.za>
In-reply-to
Content
wsgiref.headers.Headers will let you manage a collection of HTTP
response headers, but the constructor forces you to provide a list:

  >>> from wsgiref.headers import Headers
  >>> headers = Headers([])
  >>> headers.add_header('Content-Type', 'text/plain')

A logical change would be to allowed creating an empty Headers instance:

  >>> from wsgiref.headers import Headers
  >>> headers = Headers()
  >>> headers.add_header('Content-Type', 'text/plain')
History
Date User Action Args
2009-04-20 16:01:05tareksetrecipients: + tarek, pje
2009-04-20 16:01:05tareksetmessageid: <1240243265.38.0.0946630520568.issue5800@psf.upfronthosting.co.za>
2009-04-20 16:01:04tareklinkissue5800 messages
2009-04-20 16:01:03tarekcreate