aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/content.py
diff options
context:
space:
mode:
authorsebpiq2011-03-11 14:34:39 +0200
committersebpiq2011-03-11 14:34:39 +0200
commitd6c13a9e5caee653f7a8f3150c00aa574aa15700 (patch)
tree77cfb477b5662677964e74a3a4fe27d687e3006e /djangorestframework/content.py
parent94199a484783d91317c8decb273ab60447ffdfd7 (diff)
downloaddjango-rest-framework-d6c13a9e5caee653f7a8f3150c00aa574aa15700.tar.bz2
documentation + tests + debugging for formparsers
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 f9a3c6de..cfdd33be 100644
--- a/djangorestframework/content.py
+++ b/djangorestframework/content.py
@@ -50,7 +50,7 @@ class OverloadedContentMixin(ContentMixin):
content_type = None
if self.CONTENTTYPE_PARAM and request.POST.get(self.CONTENTTYPE_PARAM, None):
content_type = request.POST.get(self.CONTENTTYPE_PARAM, None)
- request.META['CONTENT_TYPE'] = content_type
+ request.META['CONTENT_TYPE'] = content_type # TODO : VERY BAD, avoid modifying original request.
return (content_type, request.POST[self.CONTENT_PARAM])
else: