Commit 9a1c9baa authored by Stavros Sachtouris's avatar Stavros Sachtouris

Fix Destination headers to support unicode values

Affects the methods "object_move" and "object_copy" of the class
"PithosRestClient" in "kamaki.clients.pithos", allowing moving and
copying of objects with unicode object or container names.
parent d9454762
......@@ -738,7 +738,8 @@ class PithosRestClient(StorageClient):
'X-Source-Version',
]
self.response_header_prefices = ['X-Object-', ]
self.request_header_prefices_to_quote = ['x-object-meta-', ]
self.request_header_prefices_to_quote = [
'x-object-meta-', 'Destination']
self.set_param('format', format, iff=format)
self.set_param('ignore_content_type', iff=ignore_content_type)
......@@ -838,7 +839,8 @@ class PithosRestClient(StorageClient):
'X-Source-Version',
]
self.response_header_prefices = ['X-Object-', ]
self.request_header_prefices_to_quote = ['x-object-meta-', ]
self.request_header_prefices_to_quote = [
'x-object-meta-', 'Destination']
self.set_param('format', format, iff=format)
self.set_param('ignore_content_type', iff=ignore_content_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment