Skip to content

Commit 8049b0e

Browse files
committed
Fix #64: compatibility with Flask 2.2.0+
1 parent 4562f7b commit 8049b0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flask_images/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def handle_request(self, path):
429429
image.save(cache_file, format, quality=quality)
430430
cache_file.close()
431431

432-
return send_file(cache_path, mimetype=mimetype, cache_timeout=cache_timeout)
432+
return send_file(cache_path, mimetype=mimetype, max_age=cache_timeout)
433433

434434

435435

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44

55
name='Flask-Images',
6-
version='3.0.2',
6+
version='3.0.3',
77
description='Dynamic image resizing for Flask.',
88
url='http://github.com/mikeboers/Flask-Images',
99

0 commit comments

Comments
 (0)