From edb65cc0f056bdfb201531066976e1cb8a90ad1f Mon Sep 17 00:00:00 2001 From: nivm Date: Sun, 10 Jan 2016 12:33:35 +0200 Subject: [PATCH] remove 'flask' from etags to obscure server technologies --- flask/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/helpers.py b/flask/helpers.py index 479ca4bb..3210772d 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -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(