mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-05-09 16:14:50 +00:00
refs #87 quotes for ascii filename to fix doctest
This commit is contained in:
parent
d7073be658
commit
3b124f0cdb
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def content_disposition(filename):
|
|||
UTF-8 encoded filename and US-ASCII fallback.
|
||||
|
||||
>>> print(content_disposition(u'é.txt'))
|
||||
attachment; filename=e.txt; filename*=UTF-8''%C3%A9.txt
|
||||
attachment; filename="e.txt"; filename*=UTF-8''%C3%A9.txt
|
||||
|
||||
"""
|
||||
if not filename:
|
||||
|
|
|
|||
Loading…
Reference in a new issue