diff options
| author | Xavier Ordoquy | 2012-11-23 01:11:09 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2012-11-23 01:11:09 +0100 |
| commit | b68263fb652172c5dd74bb7a1c99f0c1230d76bc (patch) | |
| tree | d255e2149aff38a4fa939e58b7a4e5c7e801a5e2 /rest_framework/utils | |
| parent | 4007b56457221f0d80f43c2b5303f11454fd947c (diff) | |
| download | django-rest-framework-b68263fb652172c5dd74bb7a1c99f0c1230d76bc.tar.bz2 | |
Default encoding should probably be latin-1 as some RFC seems to imply it.
Diffstat (limited to 'rest_framework/utils')
| -rw-r--r-- | rest_framework/utils/mediatypes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/utils/mediatypes.py b/rest_framework/utils/mediatypes.py index 39b4ef93..3fc59edd 100644 --- a/rest_framework/utils/mediatypes.py +++ b/rest_framework/utils/mediatypes.py @@ -47,7 +47,7 @@ class _MediaType(object): if media_type_str is None: media_type_str = '' self.orig = media_type_str - self.full_type, self.params = parse_header(media_type_str.encode('utf8')) + self.full_type, self.params = parse_header(media_type_str.encode('iso-8859-1')) self.main_type, sep, self.sub_type = self.full_type.partition('/') def match(self, other): |
