aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/content.py
diff options
context:
space:
mode:
authorsebpiq2011-03-10 16:59:21 +0200
committersebpiq2011-03-10 16:59:21 +0200
commitb117f7bd4503e74160c42b4ac1de3f8ea1132731 (patch)
tree2300019f9e2e87a78f80cec611c43dd0141dd441 /djangorestframework/content.py
parent2d8e4e056b1b6f822d02d614955ee1f220e2fdda (diff)
downloaddjango-rest-framework-b117f7bd4503e74160c42b4ac1de3f8ea1132731.tar.bz2
added a test
Diffstat (limited to 'djangorestframework/content.py')
-rw-r--r--djangorestframework/content.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/content.py b/djangorestframework/content.py
index 48f327b6..f9a3c6de 100644
--- a/djangorestframework/content.py
+++ b/djangorestframework/content.py
@@ -40,7 +40,7 @@ class OverloadedContentMixin(ContentMixin):
"""If the request contains content, returns a tuple of (content_type, content) otherwise returns None.
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 # TODO : Breaks, because determine_content should return a tuple.
+ return None
content_type = request.META.get('CONTENT_TYPE', None)
if (request.method == 'POST' and self.CONTENT_PARAM and