Ignasi Bosch
45fbf751bc
Allow partial content on bytesio
2019-01-07 06:17:36 -08:00
David Lord
857460b75a
Merge branch '1.0-maintenance'
2019-01-06 16:33:17 -08:00
David Lord
934c6ab22e
clean up flask --version code
2019-01-06 16:24:05 -08:00
Matt Robenolt
0b88fbd5eb
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
ca27661d8a
Merge branch '1.0-maintenance'
2019-01-05 15:12:17 -08:00
David Lord
77335fb105
clear KeyError in production for Werkzeug 0.15
2019-01-05 12:49:59 -08:00
Jarek Piórkowski
e65e7faf56
Correct tests
...
We've discovered that passing Unicode in Host actually works, except for
test client limitations on Python 2 - and the only things that don't
work are non-printable characters.
2018-11-13 13:09:16 -05:00
Jarek Piórkowski
dc1730e457
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
be5998ce21
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
9da281c04c
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
ThiefMaster
c93c5e750e
Merge branch '1.0-maintenance'
2018-06-14 13:31:40 +02:00
ThiefMaster
fbaeb1fc99
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
Grey Li
aaa7e2db92
Add test for routes command when no routes registered
2018-05-31 11:43:51 +08:00
Dilan Coss
a33b248c9a
details fixed
2018-05-29 09:51:08 -06:00
Dilan Coss
6cafaf462d
Test added for _AppCtxGlobals __repr__ method
2018-05-28 23:49:06 -06:00
David Lord
40a2cecdf7
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
51f4340127
SSLContext was added in Python 2.7.9
2018-05-17 06:18:42 -07:00
David Lord
34a83b1304
add more merge cases
2018-05-01 13:29:48 -07:00
Hsiaoming Yang
61eea98d17
Fix blueprint route for ""
2018-05-01 14:35:55 +09:00
David Lord
eb52ca4625
rename to FLASK_SKIP_DOTENV, add docs, test
2018-04-29 14:20:17 -07:00
David Lord
cc93fa3f5e
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
271d9e697a
trap key errors in debug, not all 400 errors
2018-04-28 06:51:08 -07:00
David Lord
fa03e9e0e4
merge slashes between blueprint prefix and rule
2018-04-27 12:40:06 -07:00
ThiefMaster
3ff5440300
Fix registering partials as view functions
2018-04-27 13:44:07 +02:00
Nick Pope
edf7cf40e3
Fix default index for TaggedJSONSerializer.register()
...
Change the default value of ``index`` to ``None`` in ``register()`` so
that it is possible to insert a new tag as the penultimate item in the
order list.
2018-04-19 14:16:11 +01:00
David Lord
aaab1e46f2
add Response.max_cookie_size config
2018-04-10 11:17:18 -07:00
David Lord
056c62e0b0
detect UTF encodings when loading json
2018-04-10 09:34:59 -07:00
fphonor
df23942df2
get_json separate cache depending on silent arg
2018-04-09 02:52:40 -07:00
David Lord
f1d2226f42
don't use Flask(__name__) in conftest
2018-02-28 06:50:49 -08:00
David Lord
399cbf4e3c
only strip one slash when registering blueprint
...
add test and changelog
2018-02-23 15:47:06 -08:00
David Lord
4f8661e6e3
use subdomain arg in url_map.bind_to_environ
...
rename new subdomain test, parametrize
test allowing subdomains as well as ips
add subdomain_matching param to docs
add some references to docs
add version changed to create_url_adapter
2018-02-23 08:39:31 -08:00
Armin Ronacher
1e81474e7e
Do not enable subdomain matching by default
...
Updated tests for new subdomain matching
Added a test to validate matching behavior
2018-02-23 07:53:27 -08:00
David Lord
8d5c870199
add test_cli_runner for testing app.cli commands
2018-02-19 15:34:46 -08:00
David Lord
aa4db37a7f
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
f23e388b81
Merge pull request #2530 from pallets/feature/factory-detection
...
Improved bad factory error handling
2018-01-28 11:27:07 -08:00
David Lord
d08a0fab8e
Merge pull request #2607 from FadhelC/SameSite-cookie-feature
...
Added support for cookie SameSite attribute
2018-01-23 15:20:16 -08:00
David Lord
e431e8809d
clean up samesite docs
2018-01-23 15:11:50 -08:00
David Lord
b0e8e7d485
add HTTPS support for flask run command
2018-01-23 10:03:53 -08:00
Fadhel_Chaabane
c65bdc0c9f
New Feature: Added Support for cookie's SameSite attribute.
2018-01-23 13:57:50 +00:00
David Lord
8dfb664336
reset standard os env after each test
2018-01-10 13:53:45 -08:00
Armin Ronacher
a1afc8f1a7
Add Support for FLASK_ENV ( #2570 )
...
This introduces environments to Flask
2018-01-06 17:07:56 +01:00
David Lord
57b2807ea8
improve documentation for session attributes
...
add test for session attributes
2018-01-04 12:56:18 -08:00
David Lord
1e9f49e586
use config fixture, get plugin via unregister
2017-12-14 12:20:03 -08:00
Camilo
29e76fbb22
restore the logging plugin only if it was active to begin with
2017-12-14 09:40:34 -05:00
Camilo
069a5e9bbd
fix non-passing tests for logging on pytest > 3.3.0
2017-12-14 01:55:22 -05:00
Adrian Moennich
26cc8fba36
Fix broken test
2017-11-25 00:53:43 +01:00
Adrian Moennich
875c30bad1
Merge remote-tracking branch 'upstream/0.12-maintenance'
2017-11-25 00:44:07 +01:00
ThiefMaster
dd8adc11be
Fix ValueError for some invalid Range requests
...
fixes #2526
2017-11-25 00:37:49 +01:00
Armin Ronacher
28e9f419f9
Improved bad factory error handling
2017-11-25 00:05:57 +01:00
David Lord
042948a4ad
rewrite cli errors
...
consistent order for arguments to load functions
refactor find_app_by_string to flow better
more cli loader tests
2017-10-10 07:04:53 -07:00