Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

move send_file and send_from_directory to Werkzeug#3828

Merged
davidism merged 1 commit intomasterfrom
move-send-file
Nov 5, 2020
Merged

move send_file and send_from_directory to Werkzeug#3828
davidism merged 1 commit intomasterfrom
move-send-file

Conversation

@davidism
Copy link
Member

@davidismdavidism commentedNov 5, 2020
edited
Loading

The implementations were moved to Werkzeug (pallets/werkzeug#1850,pallets/werkzeug#1962). Flask's functions become wrappers around Werkzeug to pass some Flask-specific values.

cache_timeout is renamed tomax_age.SEND_FILE_MAX_AGE_DEFAULT,app.send_file_max_age_default, andapp.get_send_file_max_age defaults toNone. This tells the browser to use conditional requests rather than a 12 hour cache. (pallets/werkzeug#1886)

attachment_filename is renamed todownload_name, and is always sent if a name is known. (pallets/werkzeug#1884)

Deprecatehelpers.safe_join in favor ofwerkzeug.utils.safe_join.

Removed most of the tests, they're tested in Werkzeug.

In the file upload example, renamed theuploaded_file view todownload_file to avoid a common source of confusion.

@davidismdavidism added this to the2.0.0 milestoneNov 5, 2020
The implementations were moved to Werkzeug, Flask's functions becomewrappers around Werkzeug to pass some Flask-specific values.cache_timeout is renamed to max_age. SEND_FILE_MAX_AGE_DEFAULT,app.send_file_max_age_default, and app.get_send_file_max_age defaultsto None. This tells the browser to use conditional requests rather thana 12 hour cache.attachment_filename is renamed to download_name, and is always sent ifa name is known.Deprecate helpers.safe_join in favor of werkzeug.utils.safe_join.Removed most of the send_file tests, they're tested in Werkzeug.In the file upload example, renamed the uploaded_file view todownload_file to avoid a common source of confusion.
@davidismdavidism merged commitbbb273b intomasterNov 5, 2020
@davidismdavidism deleted the move-send-file branchNovember 5, 2020 17:33
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 20, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.0.0

Development

Successfully merging this pull request may close these issues.

1 participant

@davidism

[8]ページ先頭

©2009-2026 Movatter.jp