Permalink
Browse files

Consistent use of encoding naming

  • Loading branch information...
1 parent 3afcbf1 commit 301e244df3dc747a73e2564a046976af5d0164eb @mitsuhiko mitsuhiko committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask/helpers.py
View
@@ -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
))

0 comments on commit 301e244

Please sign in to comment.