projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
038f1ae
)
Do not use the 'Accept' header on PUT to get 'format'.
author
Antony Chazapis
<chazapis@gmail.com>
Wed, 6 Jul 2011 08:25:18 +0000
(11:25 +0300)
committer
Antony Chazapis
<chazapis@gmail.com>
Wed, 6 Jul 2011 08:25:18 +0000
(11:25 +0300)
pithos/api/functions.py
patch
|
blob
|
history
diff --git
a/pithos/api/functions.py
b/pithos/api/functions.py
index
459d54d
..
85f6ccf
100644
(file)
--- a/
pithos/api/functions.py
+++ b/
pithos/api/functions.py
@@
-590,6
+590,10
@@
def object_write(request, v_account, v_container, v_object):
# itemNotFound (404),
# unauthorized (401),
# badRequest (400)
+
+ if not request.GET.get('format'):
+ request.serialization = 'text'
+
copy_from = request.META.get('HTTP_X_COPY_FROM')
move_from = request.META.get('HTTP_X_MOVE_FROM')
if copy_from or move_from: