aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/response.py
diff options
context:
space:
mode:
authorTom Christie2013-06-28 17:17:39 +0100
committerTom Christie2013-06-28 17:17:39 +0100
commit7224b20d58ceee22abc987980ab646ab8cb2d8dc (patch)
treeacbe0ee1eb19e22d561ca93e7fdab18f3a1e53ff /rest_framework/response.py
parent4ee9cdc7aff30fc3f45e78292da77b5989bb0e23 (diff)
downloaddjango-rest-framework-7224b20d58ceee22abc987980ab646ab8cb2d8dc.tar.bz2
Added APIRequestFactory
Diffstat (limited to 'rest_framework/response.py')
-rw-r--r--rest_framework/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/response.py b/rest_framework/response.py
index 5877c8a3..c4b2aaa6 100644
--- a/rest_framework/response.py
+++ b/rest_framework/response.py
@@ -50,7 +50,7 @@ class Response(SimpleTemplateResponse):
charset = renderer.charset
content_type = self.content_type
- if content_type is None and charset is not None:
+ if content_type is None and charset is not None and ';' not in media_type:
content_type = "{0}; charset={1}".format(media_type, charset)
elif content_type is None:
content_type = media_type