[Checkins] [zopefoundation/zope.app.wsgi] 232a63: Don't assume headers are unicode in FakeResponse.
GitHub
noreply at github.com
Wed Apr 26 17:26:46 CEST 2017
Branch: refs/heads/issue7
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.
More information about the checkins
mailing list