In Python 3, running the Masakari API as a wsgi application was
resulting in "TypeError: expected unicode object, value of type
bytes found". It looks like headerlist should not include bytes
type objects so let's ensure they are str objects for Python 3.
Reviewed: https:/ /review. openstack. org/636749 /git.openstack. org/cgit/ openstack/ masakari/ commit/ ?id=041af276d72 5456cdf6e45d09a 013e38188d803d
Committed: https:/
Submitter: Zuul
Branch: master
commit 041af276d725456 cdf6e45d09a013e 38188d803d
Author: Corey Bryant <email address hidden>
Date: Wed Feb 13 15:04:33 2019 -0500
Py3: Ensure wsgi headers are not bytes type
In Python 3, running the Masakari API as a wsgi application was
resulting in "TypeError: expected unicode object, value of type
bytes found". It looks like headerlist should not include bytes
type objects so let's ensure they are str objects for Python 3.
Change-Id: Ica030c54097047 4cd2511ffe0ba65 3d7bb057849
Partial-Bug: #1815657