Fixes issue with non string header values in glance client
Fixes bug 1032798 By using Glance client on Windows the following exception is raised: TypeError: sequence item 0: expected string, long found Details on how to reproduce the error are available in the bug description Change-Id: Ib4528702b11aabdf939c6358f92ad7ff9c3ff20d
This commit is contained in:
parent
c698cdc200
commit
07b72c3882
@ -539,7 +539,7 @@ class BaseClient(object):
|
||||
# conflict.
|
||||
for header, value in headers.items():
|
||||
if use_sendfile or header.lower() != 'content-length':
|
||||
c.putheader(header, value)
|
||||
c.putheader(header, str(value))
|
||||
|
||||
iter = self.image_iterator(c, headers, body)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user