Skip to content

Commit 70db0ff

Browse files
committed
Fix mikeboers#64: compatibility with Flask 2.2.0+
1 parent 4562f7b commit 70db0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)