aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/parsers.py
diff options
context:
space:
mode:
authorXavier Ordoquy2014-04-14 10:55:56 +0200
committerXavier Ordoquy2014-04-14 10:55:56 +0200
commitf6329b7b5df4b5011d318c25cb7ca288dc22ea42 (patch)
treec09f9998aca21cb2e1ff8c880b089c5408397ba7 /rest_framework/parsers.py
parent93b9245b8714287a440023451ff7880a2f6e5b32 (diff)
parent063addabfeb716f54c5784917e92ab6abb635ff5 (diff)
downloaddjango-rest-framework-f6329b7b5df4b5011d318c25cb7ca288dc22ea42.tar.bz2
Merge pull request #1529 from vlastv/patch-1
Fixed parse file name
Diffstat (limited to 'rest_framework/parsers.py')
-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