Skip to content

Conversation

@davidism
Copy link
Member

@davidism davidism commented Jul 1, 2022

  • Some argument to send_file and send_from_directory were renamed in Flask 2.0. The removal of the old names was deferred for an extra release. They have now been issuing a deprecation warning for over a year. download_name replaces attachment_filename, max_age replaces cache_timeout, etag replaces add_etags, and path replaces filename.
  • RequestContext.g was a property returning AppContext.g. Since g is not part of the request context, the property is removed.

@davidism davidism added this to the 2.2.0 milestone Jul 1, 2022
@davidism davidism merged commit c99f07d into main Jul 1, 2022
@davidism davidism deleted the remove-deprecated-code branch July 1, 2022 21:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants