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 hdima
Recipients hdima
Date 2008-12-22.11:30:52
SpamBayes Score 0.0013320606
Marked as misclassified No
Message-id <[email protected]>
In-reply-to
Content
It seems the wsgiref package was copied from Python 2.* without any
modifications. There are already 3 issues about that but they only
describe a part of the problem so I decided to start a new one. The
issues was:

http://bugs.python.org/issue3348
http://bugs.python.org/issue3795
http://bugs.python.org/issue4522

The attached patch fix the problem with the following changes:

- Fixed headers handling in wsgiref/simple_server.py;

- Fixed encoding problems. Now WSGI applications must return iterable
with bytes but start_response() allow status and headers as bytes and as
strings. "wsgi.input" file-like now use BytesIO instead of StringIO;

- Fixed tests;

- Updated documentation examples;
History
Date User Action Args
2008-12-22 11:30:58hdimasetrecipients: + hdima
2008-12-22 11:30:57hdimasetmessageid: <[email protected]>
2008-12-22 11:30:56hdimalinkissue4718 messages
2008-12-22 11:30:56hdimacreate