Headers were encoded in HTTPClient, but when glance client started
to use SessionClient this functionality was lost.
This commit replaces static method "encode_headers" from HTTPClient
and makes it a common function, that SessionClient can use when
converting image meta to headers.
Reviewed: https:/ /review. openstack. org/316054 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=9329ef0bc40 375cd9b115415e1 0baf89789f56f0
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9329ef0bc40375c d9b115415e10baf 89789f56f0
Author: Darja Shakhray <email address hidden>
Date: Fri May 13 15:03:41 2016 +0300
Fix "Codec can't encode characters"
Headers were encoded in HTTPClient, but when glance client started
to use SessionClient this functionality was lost.
This commit replaces static method "encode_headers" from HTTPClient
and makes it a common function, that SessionClient can use when
converting image meta to headers.
Change-Id: If9f8020220d2a0 431b4241b38b9c8 3c09c0d75cb
Closes-bug: #1574587