Skip to content

Commit

Permalink
Fix #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 70db0ff
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 70db0ff

Please sign in to comment.