aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/content.py
diff options
context:
space:
mode:
authorspiq2011-03-04 17:06:44 +0200
committerspiq2011-03-04 17:06:44 +0200
commit033c0ae797e0bbb39a0687592d5b5f8eceb4d4dd (patch)
tree35d2dcf3ce18d0563bc5672aa4755093787c19c2 /djangorestframework/content.py
parent91b33659b562f26665cebc3c7d8aba6d57e9386c (diff)
downloaddjango-rest-framework-033c0ae797e0bbb39a0687592d5b5f8eceb4d4dd.tar.bz2
forms and multipat parsers now flaten data
Diffstat (limited to 'djangorestframework/content.py')
-rw-r--r--djangorestframework/content.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/djangorestframework/content.py b/djangorestframework/content.py
index abe2069e..dd40f8f1 100644
--- a/djangorestframework/content.py
+++ b/djangorestframework/content.py
@@ -60,7 +60,6 @@ class OverloadedContentMixin(ContentMixin):
Note that content_type may be None if it is unset."""
if not request.META.get('CONTENT_LENGTH', None) and not request.META.get('TRANSFER_ENCODING', None):
return None
-
content_type = request.META.get('CONTENT_TYPE', None)
if (request.method == 'POST' and self.CONTENT_PARAM and
@@ -74,11 +73,6 @@ class OverloadedContentMixin(ContentMixin):
return (content_type, request.POST[self.CONTENT_PARAM])
elif request.method == 'PUT':
f = SocketFile(request.environ['wsgi.input'], request.META['CONTENT_LENGTH'])
- returned = (content_type, f.read())
- return returned
- #try:
- # f.close()
- #except Exception as e:
- # print 'exception', e
+ return (content_type, f.read())
else:
return (content_type, request.raw_post_data)