Comment 6 for bug 1641239

Revision history for this message
Colin Nolan (colin.nolan) wrote :

Thanks Carlos. The fix we made was exactly the same as yours:
```
--- a/glanceclient/common/http.py
+++ b/glanceclient/common/http.py
@@ -316,9 +316,10 @@ class SessionClient(adapter.Adapter, _BaseHTTPClient):
         super(SessionClient, self).__init__(session, **kwargs)

     def request(self, url, method, **kwargs):
- headers = encode_headers(kwargs.pop('headers', {}))
+ headers = kwargs.pop('headers', {})
         kwargs['raise_exc'] = False
         data = self._set_common_request_kwargs(headers, kwargs)
+ headers = encode_headers(headers)

         try:
             resp = super(SessionClient, self).request(url,
```

It would be great if your patches get merged as quickly as possible so that other real-world users don't have to endure this issue!