diff options
Diffstat (limited to 'glanceclient')
| -rw-r--r-- | glanceclient/common/http.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py index 8a1f172..0909e95 100644 --- a/glanceclient/common/http.py +++ b/glanceclient/common/http.py @@ -157,6 +157,10 @@ class HTTPClient(object): headers = kwargs.pop("headers", {}) headers = headers and copy.deepcopy(headers) or {} + if self.identity_headers: + for k, v in six.iteritems(self.identity_headers): + headers.setdefault(k, v) + # Default Content-Type is octet-stream content_type = headers.get('Content-Type', 'application/octet-stream') |
