Skip to content

Commit

Permalink
bump flask to minimum 2.0 and fix used of deprecated attachment_filen…
Browse files Browse the repository at this point in the history
…ame in restful.py.

pin Werkzeug <3.0.
  • Loading branch information
dfdan authored and slint committed Oct 26, 2023
1 parent ed7fe93 commit 0e81562
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flask_iiif/restful.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get(self, version, uuid, region, size, rotation, quality, image_format):
)
send_file_kwargs.update(
as_attachment=True,
attachment_filename=secure_filename(filename),
download_name=secure_filename(filename),
)
if_modified_since_raw = request.headers.get("If-Modified-Since")
if if_modified_since_raw:
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ zip_safe = False
install_requires =
blinker>=1.4
cachelib>=0.1
Flask>=1.0.4
Flask>=2.0
Flask-RESTful>=0.3.7
pillow>=7.0
six>=1.7.2
Expand All @@ -39,7 +39,7 @@ tests =
pytest-black>=0.3.0,<0.3.10
flask-testing>=0.6.0
pytest-invenio>=1.4.0
werkzeug>=0.15.3
werkzeug<3.0
sphinx>=4.5
redis>=3.5

Expand Down

0 comments on commit 0e81562

Please sign in to comment.