mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
refs #87 Quotes around ascii filename, not utf-8
This commit is contained in:
parent
1407c0cc4e
commit
77166d2969
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ def content_disposition(filename):
|
|||
if ascii_filename == utf8_filename: # ASCII only.
|
||||
return "attachment; filename=\"{ascii}\"".format(ascii=ascii_filename)
|
||||
else:
|
||||
return "attachment; filename=\"{ascii}\"; filename*=UTF-8''\"{utf8}\"" \
|
||||
return "attachment; filename=\"{ascii}\"; filename*=UTF-8''{utf8}" \
|
||||
.format(ascii=ascii_filename,
|
||||
utf8=utf8_filename)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue