Skip to content

Commit

Permalink
Fix mikeboers#64: compatibility with Flask 2.2.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
jnguiot committed Sep 24, 2022
1 parent 4562f7b commit 8049b0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flask_images/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def handle_request(self, path):
image.save(cache_file, format, quality=quality)
cache_file.close()

return send_file(cache_path, mimetype=mimetype, cache_timeout=cache_timeout)
return send_file(cache_path, mimetype=mimetype, max_age=cache_timeout)



Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(

name='Flask-Images',
version='3.0.2',
version='3.0.3',
description='Dynamic image resizing for Flask.',
url='http://github.com/mikeboers/Flask-Images',

Expand Down

0 comments on commit 8049b0e

Please sign in to comment.