From b117f7bd4503e74160c42b4ac1de3f8ea1132731 Mon Sep 17 00:00:00 2001 From: sebpiq Date: Thu, 10 Mar 2011 16:59:21 +0200 Subject: added a test --- djangorestframework/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'djangorestframework/content.py') 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 -- cgit v1.2.3