From: Antony Chazapis Date: Fri, 30 Sep 2011 10:49:41 +0000 (+0300) Subject: Fix 'Content-Type' parsing in container POST request. X-Git-Tag: pithos/v0.7.8~14^2 X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/bd08f5c0496b9c7df0c9c58a5e95e152ff6cbe60 Fix 'Content-Type' parsing in container POST request. Refs #1371 --- diff --git a/pithos/api/functions.py b/pithos/api/functions.py index 84a6609..947014b 100644 --- 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,