diff options
| author | Vladislav Vlastovskiy | 2014-04-14 12:21:38 +0400 | 
|---|---|---|
| committer | Vladislav Vlastovskiy | 2014-04-14 12:21:38 +0400 | 
| commit | 4b3eb6e0b0e6412693de126ac92482a276ca9a78 (patch) | |
| tree | 5c19dde9107a5b7d961794eb29b84169d6444896 | |
| parent | 93b9245b8714287a440023451ff7880a2f6e5b32 (diff) | |
| download | django-rest-framework-4b3eb6e0b0e6412693de126ac92482a276ca9a78.tar.bz2 | |
Fixed parse file name
| -rw-r--r-- | rest_framework/parsers.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index f1b3e38d..703cefca 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -288,7 +288,7 @@ class FileUploadParser(BaseParser):          try:              meta = parser_context['request'].META -            disposition = parse_header(meta['HTTP_CONTENT_DISPOSITION']) +            disposition = parse_header(meta['HTTP_CONTENT_DISPOSITION'].encode('utf-8'))              return disposition[1]['filename']          except (AttributeError, KeyError):              pass | 
