Flask 0.12 has been released. This is not as big a step as 0.11 has been, the only intentionally backwards-incompatible change is with regards to send_file
's behavior, which, when invoked as send_file(f)
with f
being a file-like object, no longer guesses the MIME-type from f.name
. You have to pass a filepath instead.
Special thanks to Kyle Lawlor for fixing up most documentation after the flask
CLI got introduced.
--version
.send_file
has been removed, as per issue #104
. See pull request #1849
.send_file
now fails loudly and doesn't fall back to
application/octet-stream
. See pull request #1988
.flask.safe_join
able to join multiple paths like os.path.join
(pull request #1730
).#2006
).send_file
.app.test_client
includes preset default environment, which can now be
directly set, instead of per client.get
.