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 Alan.Braithwaite
Recipients Alan.Braithwaite
Date 2014-03-31.17:02:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396285351.75.0.166007035179.issue21114@psf.upfronthosting.co.za>
In-reply-to
Content
At wsgiref.simple_server:99, it uses the wrong field to get the headers from the request.  In rfc822.Message.readheaders it describes that the headers attribute is an uninterrupted list of the lines in the header.  The dict attribute of Message should contain the proper key/value map of the headers.

I've attached a patch of what I think the behavior should be.  This has incidentally been fixed in python 3+.
History
Date User Action Args
2014-03-31 17:02:31Alan.Braithwaitesetrecipients: + Alan.Braithwaite
2014-03-31 17:02:31Alan.Braithwaitesetmessageid: <1396285351.75.0.166007035179.issue21114@psf.upfronthosting.co.za>
2014-03-31 17:02:31Alan.Braithwaitelinkissue21114 messages
2014-03-31 17:02:31Alan.Braithwaitecreate