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: Ica030c540970474cd2511ffe0ba653d7bb057849
Partial-Bug: #1815657
(cherry picked from commit 041af276d725456cdf6e45d09a013e38188d803d)
Reviewed: https:/ /review. openstack. org/641039 /git.openstack. org/cgit/ openstack/ masakari/ commit/ ?id=250068a7deb a6230387fa99a85 1cfe4cee56ccf0
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 250068a7deba623 0387fa99a851cfe 4cee56ccf0
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 cdf6e45d09a013e 38188d803d)
Partial-Bug: #1815657
(cherry picked from commit 041af276d725456