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: If9f8020220d2a0431b4241b38b9c83c09c0d75cb
Closes-bug: #1574587
(cherry picked from commit 9329ef0bc40375cd9b115415e10baf89789f56f0)
Reviewed: https:/ /review. openstack. org/319969 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=4a556710917 4a05d434fe336c0 56ca09eda4b976
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 4a5567109174a05 d434fe336c056ca 09eda4b976
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 d9b115415e10baf 89789f56f0)
Closes-bug: #1574587
(cherry picked from commit 9329ef0bc40375c