[Checkins] [zopefoundation/zope.app.wsgi] 232a63: Don't assume headers are unicode in FakeResponse.
GitHub
noreply at github.com
Thu Apr 27 12:18:31 CEST 2017
Branch: refs/heads/master
Home: https://github.com/zopefoundation/zope.app.wsgi
Commit: 232a6377b93b88e8a26dca2abef0ad8e7c278823
https://github.com/zopefoundation/zope.app.wsgi/commit/232a6377b93b88e8a26dca2abef0ad8e7c278823
Author: Jason Madden <jamadden at gmail.com>
Date: 2017-04-26 (Wed, 26 Apr 2017)
Changed paths:
M .gitignore
M .travis.yml
M CHANGES.rst
M setup.py
M src/zope/app/wsgi/testlayer.py
M src/zope/app/wsgi/tests.py
M tox.ini
Log Message:
-----------
Don't assume headers are unicode in FakeResponse.
Fix the testlayer's ``FakeResponse`` assuming that headers were in
unicode on Python 2, where they should usually be encoded bytes
already. This could lead to UnicodeDecodeError if the headers
contained non-ascii characters. Also make it implement ``__unicode__``
on Python 2 and ``__bytes__`` on Python 3 to ease cross version
testing.
Also add explicit Py3.6 support.
Fixes #7.
Commit: 6527bfd749ded6d7f1cf6a4813f9447031fcc126
https://github.com/zopefoundation/zope.app.wsgi/commit/6527bfd749ded6d7f1cf6a4813f9447031fcc126
Author: Jason Madden <jason+github at nextthought.com>
Date: 2017-04-27 (Thu, 27 Apr 2017)
Changed paths:
M .gitignore
M .travis.yml
M CHANGES.rst
M setup.py
M src/zope/app/wsgi/testlayer.py
M src/zope/app/wsgi/tests.py
M tox.ini
Log Message:
-----------
Merge pull request #8 from zopefoundation/issue7
Don't assume headers are unicode in FakeResponse.
Compare: https://github.com/zopefoundation/zope.app.wsgi/compare/1496beaceb4c...6527bfd749de
More information about the checkins
mailing list