Skip to content

Commit

Permalink
Consistent use of encoding naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 7, 2012
1 parent 3afcbf1 commit 301e244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
))
Expand Down

0 comments on commit 301e244

Please sign in to comment.