projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b10ca
)
Fix unicode metadata in public objects.
author
Antony Chazapis
<chazapis@gmail.com>
Mon, 5 Dec 2011 16:07:07 +0000
(18:07 +0200)
committer
Antony Chazapis
<chazapis@gmail.com>
Mon, 5 Dec 2011 16:07:07 +0000
(18:07 +0200)
pithos/api/util.py
patch
|
blob
|
history
diff --git
a/pithos/api/util.py
b/pithos/api/util.py
index
d7ed7af
..
9032c92
100644
(file)
--- a/
pithos/api/util.py
+++ b/
pithos/api/util.py
@@
-197,7
+197,7
@@
def put_object_headers(response, meta, restricted=False):
else:
for k in ('Content-Encoding', 'Content-Disposition'):
if k in meta:
- response[k] = meta[k]
+ response[k] = smart_str(meta[k], strings_only=True)
def update_manifest_meta(request, v_account, meta):
"""Update metadata if the object has an X-Object-Manifest."""