Commit graph

297 commits

Author SHA1 Message Date
jab
8a2db3db18 Change Flask.__init__ to accept two new keyword arguments, host_matching and static_host. (#1560)
This enables host_matching to be set properly by the time the constructor adds
the static route, and enables the static route to be properly associated with
the required host.

Previously, you could only enable host_matching once your app was already
instantiated (e.g. app.url_map.host_matching = True), but at that point
the constructor would have already added the static route without host matching
and an associated host, leaving the static route in a broken state.

Fixes #1559.
2017-04-07 16:31:54 +02:00
Markus Unterwaditzer
6b38678139 Merge branch '0.12-maintenance' 2017-03-31 18:44:33 +02:00
Markus Unterwaditzer
247a0c906d Revert "Handle BaseExceptions (#2222)"
This reverts commit 1d4448abe3.
2017-03-31 18:44:14 +02:00
Markus Unterwaditzer
6b77184efb Prepare for 0.12.1 2017-03-31 18:43:34 +02:00
Markus Unterwaditzer
5b10ba89ce Correct changelog 2017-03-31 18:41:10 +02:00
Diggory Blake
965d444e0f Add test and changes 2017-03-31 18:40:46 +02:00
Diggory Blake
2774221987 Handle BaseExceptions (#2222)
* Handle BaseExceptions

* Add test and changes

* Make test more idiomatic
2017-03-31 18:07:43 +02:00
Hsiaoming Yang
9c5f048ad2 Don't rely on X-Requested-With for pretty print json response (#2193)
* Don't rely on X-Requested-With for pretty print json response

* Fix test cases for pretty print json patch

* Fix gramma error in docs for pretty print json config

* Add changelog for JSONIFY_PRETTYPRINT_REGULAR
2017-03-07 10:09:46 +09:00
Adrian
b780d771ef Fix typo 2017-03-04 22:32:23 +01:00
Armin Ronacher
02b5eadc43 Convert Flask.run into a noop when run from the CLI 2017-01-29 12:26:52 +01:00
David Lord
7af6c7fa97 add test and changelog for SERVER_NAME app.run default
ref #2152
2017-01-17 14:08:33 -08:00
Markus Unterwaditzer
6e1c4293cf Merge branch '0.12-maintenance' 2016-12-30 22:46:26 +01:00
Paul Brown
b2b61ecca9 update change log 2016-12-30 22:45:53 +01:00
Markus Unterwaditzer
09a93c6a71 Init 0.13 changelog 2016-12-30 22:29:08 +01:00
Markus Unterwaditzer
5512e424b6 Fix config.from_pyfile on Python 3 (#2123)
* Fix config.from_pyfile on Python 3

Fix #2118

* Support Python 2.6

* Fix tests on Python 2
2016-12-26 03:50:47 +01:00
Markus Unterwaditzer
afb013e260 Changelog stub for 0.12.1 2016-12-25 16:35:06 +01:00
Markus Unterwaditzer
09f5dcfdc6 Version 0.12 2016-12-21 21:19:53 +01:00
Michael Recachinas
3f6ddf9cfd Default environ (#2047)
* Add init to FlaskClient

This addresses #1467. The init in the subclass
can now take in `environ_base`, which will then get
passed to `make_test_environ_builder` and to
`EnvironBuilder` via keyword args.

This should provide the default environment capability
on `app.test_client()` init.

* Add kwarg `environ_base` to `make_test_environ_builder` call

This change now passes `environ_base` from either
`kwargs` in `FlaskClient.open` or `FlaskClient.environ_base`
if passed into the init.

* Fix assignment reference typo

* Add default `environ_base` to `FlaskClient.__init__`

* Set default kwargs for `environ_base` in `FlaskClient.open`

* Remove specific environ_base kwarg since its in kwargs

* Add docstring to FlaskClient detailing environ_base

* Document app.test_client default environ in CHANGES

* Re-word environ_base changes in FlaskClient docstring

* Add client.environ_base tests

* Mention preset default environ in `app.test_client`

* Add versionchanged directive to docstring in FlaskClient
2016-10-12 08:54:24 +02:00
Joël Charles
f2b945d586 make use of range requests if available in werkzeug (#2031)
* make use of range requests if available in werkzeug

* different logic for testing werkzeug functionality
2016-09-26 12:43:46 +02:00
Armin Ronacher
de6067e0d4 Merge branch 'feature/logger-propagation' 2016-09-12 21:54:41 +03:00
Armin Ronacher
a7fbfb387f Corrected after response for error handlers
Before this change after request functions were not correctly
invoked for error handlers.
2016-09-08 11:56:02 +03:00
Markus Unterwaditzer
394d5d57c8 Changelog for #2006 2016-09-07 18:19:10 +02:00
Josh Soref
0f2c793e14 Spelling (#1998)
* spelling: cacheability

* spelling: conceptually

* spelling: javascript

* spelling: reset

* spelling: raised

* comma: instead..., they...
2016-08-30 00:26:20 +02:00
Markus Unterwaditzer
a9757f8b1e Properly remove f.name usage in send_file (#1988)
* Properly remove f.name usage in send_file

* Update changelogs

* Fix tests
2016-08-26 03:08:03 +02:00
Armin Ronacher
9657b517a8 Disable logger propagation by default 2016-08-25 15:41:46 +02:00
Markus Unterwaditzer
37e8f151d0 Merge branch '0.11-maintenance' 2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
1fa0715c20 Fix PyPy3 support and add bug references
Fix #1841
2016-06-13 20:33:57 +02:00
Markus Unterwaditzer
040927f9a9 Merge branch '0.11-maintenance' 2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
c347825eff Bump version to 0.11.1 2016-06-07 18:22:43 +02:00
Giampaolo Eusebi
89235f20e4 Make safe_join able to safely join multiple paths 2016-06-04 11:26:16 +02:00
Markus Unterwaditzer
f02ce546c3 Merge branch '0.11-maintenance' 2016-06-03 18:44:01 +02:00
Markus Unterwaditzer
f7f0e9e4e0 Changelog for #1872 2016-06-03 18:43:32 +02:00
Dan Sully
51c2069872 Remove deprecation warnings for add_etags & mimetype guessing for send_file()
Fix #1849
2016-06-03 14:52:33 +02:00
Armin Ronacher
b80db7afac Update CHANGES 2016-06-02 13:53:35 +02:00
Jochen Kupperschmidt
38a7f718f7 Fixed link in changelog to documentation. (#1833)
Using the officially documented, shortcut package path of the `Config` class instead of the actual one.
2016-05-30 23:20:23 +02:00
Armin Ronacher
0a49b5cfec Release is near 2016-05-29 11:01:22 +02:00
Armin Ronacher
308af2812e Improve application context popping
Exceptions during teardown handling will no longer leave application
contexts lingering around.  This fixes #1767
2016-05-26 21:46:56 +02:00
Armin Ronacher
502f179643 Change changelog to 0.11 2016-05-26 21:05:39 +02:00
Steven Loria
7d134e9556 Add JSONIFY_MIMETYPE configuration variable (#1728)
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
José Carlos García
fcb3c0a4fe Change to Pallets project
* Update CHANGES

* Update CONTRIBUTING.rst

* Update setup.py

* Update tox.ini

* Update extensions.rst

* Update security.rst

* Update installation.rst

* Update testing.rst

* Update upgrading.rst

* Update sidebarintro.html

* Update jquery.rst

* Update dbcon.rst

* Update index.rst
2016-04-03 23:11:38 +02:00
Markus Unterwaditzer
3055bdf5f7 Changelog for #1763 2016-04-02 21:10:24 +02:00
Markus Unterwaditzer
450b4784d6 Changelog for #1484 2016-04-02 21:08:58 +02:00
Jeff Widman
cb92359417 Cleanup jsonify() function
Cleanup some leftover stuff from #1671. PEP8 spacing, args/kwargs don't need to be converted to list/dict, and Sphinx formatting.
2016-01-25 16:43:02 -08:00
Jeff Widman
4da4fadfc6 Add support for serializing top-level arrays to JSON
Fix #170, #248, #510, #673, #1177
2016-01-13 13:20:11 -08:00
hidavy
9621ef2135 Update CHANGES 2015-10-23 16:20:02 +08:00
Markus Unterwaditzer
976db05a5b Merge branch '0.10-maintenance' 2015-07-16 12:05:07 +02:00
Markus Unterwaditzer
765f851a7c Changelog for #1533 2015-07-16 12:01:25 +02:00
Alan Hamlett
a6f9582497 Enable autoescape for render_template_string 2015-07-04 23:41:43 +02:00
ThiefMaster
394acf2112 Add pop and setdefault to AppCtxGlobals 2015-06-20 18:04:58 +02:00
Alexander Pantyukhin
069f134d7e Changes and docs are modified. 2015-06-17 15:45:37 +02:00