David Lord
a74864ec22
Merge remote-tracking branch 'origin/1.0-maintenance'
2019-01-07 10:00:10 -08:00
David Lord
662ce2151d
add changelog for GH-2986
2019-01-07 09:52:54 -08:00
Jimmy Jia
b92b2e6c74
Do not handle RoutingExceptions with app error handlers
2019-01-07 09:01:37 -08:00
garenchan
40118e785f
Make sure the attachment filename is text type.
...
If attachment filename is bytes type and contains non-ascii coded bytes,
then the following ASCII encoding process will trigger
UnicodeDecodeError exception.
Fix issue #2933 .
2019-01-07 07:17:33 -08:00
David Lord
366f3f49af
add changelog for GH-2957
2019-01-07 06:56:20 -08:00
Ignasi Bosch
b570bf699c
Allow partial content on bytesio
2019-01-07 06:17:36 -08:00
David Lord
4f3dbb3f3b
Merge branch '1.0-maintenance'
2019-01-06 16:33:17 -08:00
David Lord
a0ccc47780
clean up flask --version code
2019-01-06 16:24:05 -08:00
Dilan Coss
3fd51c65fb
add werkzeug to flask --version
2019-01-06 16:11:03 -08:00
David Lord
ac6746d1be
Merge branch '1.0-maintenance'
2019-01-06 15:46:33 -08:00
Douglas Thor
830c77cb44
document that Config.from_object uses object as-is
2019-01-06 14:34:05 -08:00
David Lord
3b45b82ec2
Merge branch '1.0-maintenance'
2019-01-06 10:36:54 -08:00
xtreak
b85425ac1b
remove syntax warning from docstring
2019-01-06 10:17:58 -08:00
xtreak
e4ebbd3f5b
Fix DeprecationWarning on collections import
2019-01-06 10:04:00 -08:00
Rohan Talip
02df042416
Corrected a typo in a docstring: "Help object" --> "Helper object"
2019-01-06 09:10:28 -08:00
Grey Li
d0ceb16be9
Use imperative tense for CLI help text
2019-01-06 06:31:57 -08:00
Matt Robenolt
25de45cbb6
Add support for PathLike objects in static file helpers
...
See: https://www.python.org/dev/peps/pep-0519/
This is mostly encountered with pathlib in python 3, but this API
suggests any PathLike object can be treated like a filepath with
`__fspath__` function.
2019-01-05 15:23:47 -08:00
David Lord
f7d50d4b67
Merge branch '1.0-maintenance'
2019-01-05 15:12:17 -08:00
David Lord
49efc44233
clear KeyError in production for Werkzeug 0.15
2019-01-05 12:49:59 -08:00
Jarek Piórkowski
ed9775fb77
Handle errors during create_url_adapter
...
If create_url_adapter raises (which it can if werkzeug cannot bind
environment, for example on non-ASCII Host header), we handle it as
other routing exceptions rather than raising through.
ref https://github.com/pallets/werkzeug/issues/640
2018-11-12 16:59:09 -05:00
Dave Chevell
e08bcf9f97
Fix #2935 : Copy current session object in copy_current_request_context ( #2936 )
...
Add session to RequestContext.copy()
2018-11-03 20:32:24 -07:00
garenchan
c38499bbf2
ignore colon with slash when split app_import_path
...
Flask currently supports importing app through a combination of module
path and app variable name, such as '/usr/app.py:my_app'. When the
module path contains a colon, it will conflict with this import way and
a `flask.cli.NoAppException` will be raised.
A file path on a Windows system may contain a colon followed by a slash.
So we solved this problem on Windows by ignoring the colon followed by a
slash when we split app_import_path.
Fix issue #2961 .
2018-10-24 23:47:41 +08:00
David Lord
70b45094ab
Merge pull request #2962 from garenchan/dev
...
Cache return values to avoid repeated function calls.
2018-10-23 08:27:46 -07:00
garenchan
9bc87d09c6
Cache return values to avoid repeated function calls.
2018-10-23 22:10:20 +08:00
moyosore
673772cac9
Fixed typo in app.py
2018-10-13 20:57:41 +02:00
garenchan
aa7e15dcba
Reduce unnecessary function calls.
...
When propagate exceptions, the function call of "_find_error_handler"
makes no sense.
2018-09-23 16:40:35 +08:00
David Lord
0bb25eb367
Merge pull request #2848 from gcrsaldanha/use-itervalues
...
🎨 Use `itervalues` instead of `iteritems` when `key` is not necessary
2018-06-28 22:23:08 -07:00
Gabriel Saldanha
d5c465ddf4
🎨 Use itervalues instead of iteritems
2018-06-29 00:10:44 -03:00
Gabriel Saldanha
d362399e7e
🔥 Remove code supposed to be removed at v1.0
2018-06-27 08:23:44 -03:00
Grey Li
f036308442
Add cli tips for .flaskenv
2018-06-15 19:12:50 +08:00
ThiefMaster
161c43649d
Merge branch '1.0-maintenance'
2018-06-14 13:31:40 +02:00
ThiefMaster
50227f0954
Add option to not overwrite debug flag in cli
...
This is mainly intended for custom CLIs that may load a config file
which already sets the debug flag and does not make use of the `FLASK_*`
env vars at all.
2018-06-14 13:25:05 +02:00
Suraj Chafle
076dddb2e1
Fixed 2823
2018-06-13 16:31:54 -07:00
David Lord
b51ab3ff2c
encode filenames as ascii instead of latin-1
...
latin-1 is allowed by pep3333, but that breaks gunicorn
2018-05-28 06:36:47 -07:00
Briehan Lombaard
a913b4dafd
SSLContext was added in Python 2.7.9
2018-05-17 06:18:42 -07:00
David Lord
9bee619320
Merge branch '1.0-maintenance'
2018-05-02 07:28:38 -07:00
David Lord
939c77a39a
Bump version number to 1.0.3.dev
2018-05-02 07:16:58 -07:00
David Lord
dfd3619d6f
Bump version number to 1.0.2
2018-05-02 07:16:14 -07:00
Grey Li
b4e092600d
Check whether exist registered routes
2018-05-02 06:06:15 -07:00
David Lord
b21b4d1608
add more merge cases
2018-05-01 13:29:48 -07:00
Hsiaoming Yang
f7a3bdc6db
Fix blueprint route for ""
2018-05-01 14:35:55 +09:00
David Lord
1fa9185c7e
Merge branch '1.0-maintenance'
2018-04-29 19:13:30 -07:00
David Lord
c9ab9ef5db
Bump version number to 1.0.2.dev
2018-04-29 19:09:23 -07:00
David Lord
a15795c99e
Bump version number to 1.0.1
2018-04-29 19:08:16 -07:00
David Lord
6e1e3e03ca
check FLASK_SKIP_DOTENV in app.run
2018-04-29 18:45:50 -07:00
David Lord
f13870731c
allow empty prefix and no lead slash in bp route
2018-04-29 15:32:12 -07:00
David Lord
5965cb7e1c
rename to FLASK_SKIP_DOTENV, add docs, test
2018-04-29 14:20:17 -07:00
Hsiaoming Yang
bac5d6b9f4
Use FLASK_DONT_LOAD_ENV flag to disable load .env
2018-04-28 07:19:06 -07:00
David Lord
4c8ec8f555
Merge pull request #2739 from pallets/2735-abort-debug
...
Only trap key errors by default in debug, not all BadRequest errors
2018-04-28 07:01:42 -07:00
David Lord
b573a86977
trap key errors in debug, not all 400 errors
2018-04-28 06:51:08 -07:00