projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cd94d8
)
Fix 'Content-Type' parsing in container POST request.
author
Antony Chazapis
<chazapis@gmail.com>
Fri, 30 Sep 2011 10:49:41 +0000
(13:49 +0300)
committer
Antony Chazapis
<chazapis@gmail.com>
Fri, 30 Sep 2011 10:49:41 +0000
(13:49 +0300)
Refs #1371
pithos/api/functions.py
patch
|
blob
|
history
diff --git
a/pithos/api/functions.py
b/pithos/api/functions.py
index
84a6609
..
947014b
100644
(file)
--- a/
pithos/api/functions.py
+++ b/
pithos/api/functions.py
@@
-396,7
+396,7
@@
def container_update(request, v_account, v_container):
content_length = -1
if request.META.get('HTTP_TRANSFER_ENCODING') != 'chunked':
content_length = get_int_parameter(request.META.get('CONTENT_LENGTH', 0))
- content_type = request.META.get('Content-Type')
+ content_type = request.META.get('CONTENT_TYPE')
hashmap = []
if content_type and content_type == 'application/octet-stream' and content_length != 0:
for data in socket_read_iterator(request, content_length,