forked from orbit-oss/flask
Consistent use of encoding naming
This commit is contained in:
parent
3afcbf160e
commit
301e244df3
1 changed files with 1 additions and 1 deletions
|
|
@ -571,7 +571,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
|
|||
os.path.getmtime(filename),
|
||||
os.path.getsize(filename),
|
||||
adler32(
|
||||
filename.encode('utf8') if isinstance(filename, unicode)
|
||||
filename.encode('utf-8') if isinstance(filename, unicode)
|
||||
else filename
|
||||
) & 0xffffffff
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue