Browse Source

Consistent use of encoding naming

pull/609/head
Armin Ronacher 12 years ago
parent
commit
301e244df3
  1. 2
      flask/helpers.py

2
flask/helpers.py

@ -571,7 +571,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
os.path.getmtime(filename), os.path.getmtime(filename),
os.path.getsize(filename), os.path.getsize(filename),
adler32( adler32(
filename.encode('utf8') if isinstance(filename, unicode) filename.encode('utf-8') if isinstance(filename, unicode)
else filename else filename
) & 0xffffffff ) & 0xffffffff
)) ))

Loading…
Cancel
Save