from_content_type

This commit is contained in:
Gregory Vigo Torres 2015-07-29 20:07:26 +02:00
parent 9d17d59471
commit 36ae635fbe
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class ResponseTypes(object):
header """
if content_encoding:
return Response
mimetype = content_type.split(';')[0].strip().lower()
mimetype = to_native_str(content_type).split(';')[0].strip().lower()
return self.from_mimetype(mimetype)
def from_content_disposition(self, content_disposition):