keystoneauth/releasenotes/notes/bug-1766235wq-0de60d0f996c6bfb.yaml
Brian Rosmaita 35de6ebe93
Fix logging of encoded headers
A change introduced in 3.5.0 sorts headers, but runs into a problem
when the headers are bytes, such as the headers provided by the
python-glanceclient.

requests expects headers to be str type in both python2 and python3.
This means in python2 we need to encode unicode objects as ASCII (the
encoding that should be used for HTTP headers) and in python3 we need to
decode bytes as ASCII into str.

Change-Id: Ib81497c3a873616c22ba68256c596a6fb113e11e
Closes-bug: #1766235
2018-05-15 09:29:43 -05:00

7 lines
199 B
YAML

---
fixes:
- |
[`bug 1766235 <https://bugs.launchpad.net/keystoneauth/+bug/1766235>`_]
Fixed an issue where passing headers in as bytes rather than strings
would cause a sorting issue.