summaryrefslogtreecommitdiff
path: root/glanceclient
diff options
context:
space:
mode:
Diffstat (limited to 'glanceclient')
-rw-r--r--glanceclient/common/http.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/common/http.py b/glanceclient/common/http.py
index e867ac2..40a39cb 100644
--- a/glanceclient/common/http.py
+++ b/glanceclient/common/http.py
@@ -147,7 +147,7 @@ class HTTPClient(object):
names and values
"""
return dict((encodeutils.safe_encode(h), encodeutils.safe_encode(v))
- for h, v in six.iteritems(headers))
+ for h, v in six.iteritems(headers) if v is not None)
def _request(self, method, url, **kwargs):
"""Send an http request with the specified characteristics.