Skip to content

Commit 01081db

Browse files
committed
1 parent dbeed24 commit 01081db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
559559
rv.cache_control.max_age = cache_timeout
560560
rv.expires = int(time() + cache_timeout)
561561

562-
if add_etags and filename is not None and file is None:
562+
if add_etags and filename is not None:
563563
from warnings import warn
564564

565565
try:

0 commit comments

Comments
 (0)