Skip to content

Commit

Permalink
remove 'flask' from etags to obscure server technologies
Browse files Browse the repository at this point in the history
  • Loading branch information
nivm committed Jan 10, 2016
1 parent f17e606 commit edb65cc
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 @@ -540,7 +540,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,

if add_etags and filename is not None:
try:
rv.set_etag('flask-%s-%s-%s' % (
rv.set_etag('%s-%s-%s' % (
os.path.getmtime(filename),
os.path.getsize(filename),
adler32(
Expand Down

0 comments on commit edb65cc

Please sign in to comment.