aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladislav Vlastovskiy2014-04-14 12:21:38 +0400
committerVladislav Vlastovskiy2014-04-14 12:21:38 +0400
commit4b3eb6e0b0e6412693de126ac92482a276ca9a78 (patch)
tree5c19dde9107a5b7d961794eb29b84169d6444896
parent93b9245b8714287a440023451ff7880a2f6e5b32 (diff)
downloaddjango-rest-framework-4b3eb6e0b0e6412693de126ac92482a276ca9a78.tar.bz2
Fixed parse file name
-rw-r--r--rest_framework/parsers.py2
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