Skip to content

Commit

Permalink
Merge pull request pallets#1688 from nivm/master
Browse files Browse the repository at this point in the history
Remove 'flask' from etags to obscure server technologies
  • Loading branch information
davidism committed Jan 26, 2016
2 parents 992d9be + edb65cc commit b4240e6
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 b4240e6

Please sign in to comment.