Eugene Molotov
1e406655fe
Allow non latin-1 filename in FileResponse ( #792 )
2020-02-17 14:14:30 +00:00
Yang Keming
5f4fc85541
fix doc: endpoint websocket example ( #827 )
2020-02-14 09:18:42 +00:00
retnikt
820f9f583b
More debugger improvements ( #825 )
...
* HTML-escape everything in the debugger
There isn't much of an attack surface here given the debugger should never be
exposed in production and most of these things are not user-controllable (in
fact you'd have to try hard to get `<script>` in a Python identifier), but
escaping them is still important in case they mess up debugger output (see #599 ,
#601 ), and it's also just good practice.
* monospace debugger content and clean up styles
2020-02-11 09:36:29 +00:00
Bo Huang
5d67eddda9
Allow callable functions to be passed into the config's casting ( #530 )
...
parameter
2020-02-10 14:53:22 +00:00
retnikt
875f3cc7b8
fix naive debugger line numbers in ServerErrorMiddleware ( #821 )
...
Previously the error middleware in debug mode would naively calculate the line
numbers without knowledge of the position in the file. This meant that if the
exception occurred near the top or bottom of the file, the line numbers and
the highlighted line would be incorrect. The named tuple returned by
`inspect.getinnerframes` contains an `index` field which is not naive and will
result in correct line numbers. This change also simplifies the code somewhat
2020-02-10 12:25:05 +00:00
Daniel
df0efb6603
Fix typo ( #816 )
2020-02-04 14:14:53 +00:00
Tom Christie
a3034c5a64
Version 0.13.1 ( #815 )
2020-01-30 11:40:55 +00:00
Jorge Leitao
f34b3a9bba
Added 3rd party package. ( #768 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-01-29 15:51:25 +00:00
Tom Christie
3c7e6af163
WSGI middleware should lowercase ASGI headers ( #813 )
2020-01-29 11:15:38 +00:00
Tom Christie
508ab752b4
Fix slash redirects ( #812 )
...
* Fix for slash redirects
* Drop extranous 'type: ignore'
* Drop print() statement
* Add type: ignore on optional imports
2020-01-29 09:48:35 +00:00
Bekhzod Tillakhanov
6a65461c6e
docs(database): change gino homepage url ( #808 )
...
Change homepage url gino from `https://python-gino.readthedocs.io/en/latest/ ` to `https://python-gino.org/ `
2020-01-23 09:24:39 +00:00
Joseph Buckley
20973f2ed3
Security patch: Updating CORS origin regex to use a full regex match ( #801 )
...
* Updating CORS origin regex to use a full regex match
* Reformatting unittest based on linting
2020-01-15 10:55:10 +00:00
Vlad Dmitrievich
5c43dde0ec
typo in configuration docs ( #789 )
2020-01-09 15:11:28 +00:00
Daniel Hahler
7bcb07786a
typing: remove unused "type: ignore" comments ( #779 )
...
* typing: remove unused "type: ignore" comments
Found via:
> mypy --warn-unused-ignores --ignore-missing-imports starlette
Using:
> mypy 0.770+dev.cdd91ba819646b0138b05a8e9180faba4ef0ff92.dirty
* fixup! typing: remove unused "type: ignore" comments
2020-01-07 14:00:10 +00:00
Daniel Hahler
6909eea06d
ci: Travis: use py38 ( #781 )
2020-01-07 09:40:30 +00:00
Yang Keming
84eac86057
update 3rd packages: add spectree ( #783 )
2020-01-06 10:48:20 +00:00
Tomasz Wójcik
c80558e04d
add starlette-context to 'third party packages' docs (encode#420) ( #770 )
2019-12-29 15:11:12 +00:00
Emil Stenström
06d0fc470a
Add space so example is copy-pastable ( #766 )
2019-12-21 21:49:27 +00:00
Tom Christie
00e8300804
Ignore gnarly type check in WSGI implementation ( #756 )
...
* Ignore gnarly type check in WSGI implementation
* Linting
2019-12-17 11:14:57 +00:00
Trim21
d2b65c3c99
support Path in Config ( #755 )
...
* support Path in Config
* fix broken tests
2019-12-17 09:57:02 +00:00
podhmo
5c26cf6c40
add import Route ( #752 )
2019-12-16 16:58:33 +00:00
Eneko Illarramendi
c5239ba89b
Document custom filters for Jinja2 ( #737 )
2019-12-10 14:58:44 +00:00
Tom Christie
b8bd169649
Update database.md
2019-11-25 09:13:12 +00:00
Tom Christie
24f73c5e0b
Update routing.md
2019-11-22 11:28:12 +00:00
Fulvio Esposito
9b4dff44c3
Drop double square brackets tests in install script ( #718 )
...
sh doesn't support double square brackets tests which are a bash feature.
This commit replace them with single square brackets tests
2019-11-22 11:26:14 +00:00
Jake Howard
338d5ab0ae
Show nicer warning when `ujson` isn't installed ( #728 )
2019-11-22 11:22:15 +00:00
Tom Christie
4152533ce4
Tweak app signatures ( #723 )
2019-11-20 15:10:15 +00:00
Florian Apolloner
28907dff38
Added support for publishing wheel files. Fixes #668 ( #719 )
2019-11-15 12:06:59 +00:00
Jeff Triplett
6ddd0523b0
📝 Fixes example typo in README ( #717 )
...
Thanks!
2019-11-13 18:56:47 +00:00
Tom Christie
302415d728
Version 0.13.0
2019-11-13 12:27:50 +00:00
Tom Christie
7f8cd04173
Version 0.13 ( #704 )
...
* Version 0.13
* Fix misnamed requirement
* Updating routing docs
* Update routing docs
* Update docs
* Simpler Middleware signature
* Update middleware docs
* Update exception docs
* Allow 'None' in middleware lists, for easy disabling of middleware.
* Update README
2019-11-13 12:25:18 +00:00
Adam Johnson
78220391c2
List Scout APM as a third party package ( #710 )
2019-11-12 13:47:35 +00:00
Hsiaoming Yang
3cc5168ec0
Add Authlib into third party packages. ( #712 )
2019-11-12 13:43:15 +00:00
Grégoire Détrez
764e88a1ec
Fix a small typo in CORS middleware documentation ( #708 )
2019-11-07 15:18:50 +00:00
Tom Christie
5613fa7e12
Handle trailing slash redirects properly. ( #707 )
...
* Handle trailing slash redirects properly.
Currently we have behavior so that if:
* A `/some-path/`route exists.
* A `/some-path` route does not exist.
Then if a request to `/some-path` is made, we'll redirect to the trailing slash case.
We ought to also handle the converse case, so that if...
* A `/some-path`route exists.
* A `/some-path/` route does not exist.
Then if a request to `/some-path/` is made, we'll redirect to the no trailing slash case.
Closes #633
* Update routing.py
* Update routing.py
2019-11-06 21:16:41 +00:00
Tom Christie
3e9bcec368
Strip whitespace on response headers ( #706 )
...
Strip leading/trailing whitespace on response headers.
Closes #664
2019-11-06 20:57:00 +00:00
Tom Christie
d62b22e9fd
Update release-notes.md
2019-11-06 10:44:00 +00:00
Florimond Manca
b1e6494446
Remove Bocadillo from third party packages ( #684 )
2019-11-05 16:12:53 +00:00
Tom Christie
daba217bee
Version 0.12.13
2019-11-04 15:08:53 +00:00
Tom Christie
91eefb2af3
Support app configuration on initialization. ( #702 )
...
* Add on-app-init middleware definitions
* Support on_startup, on_shutdown args
2019-11-04 15:08:24 +00:00
Tom Christie
d9bd9b42d9
Version 0.12.12
2019-11-01 15:30:20 +00:00
Tom Christie
cefe8dcab1
Fix url_for with double mounts ( #701 )
2019-11-01 15:19:07 +00:00
Tom Christie
a92df1f61e
Version 0.12.11
2019-11-01 14:13:11 +00:00
Tom Christie
2a8c045822
Include 'root_path' when returning URLs from request.url_for ( #699 )
...
* Include 'root_path' when returning URLs from request.url_for
* Preserve root_path for mounted apps
2019-11-01 14:11:00 +00:00
Tom Christie
1ea45ad549
Resolve latest mypy issues ( #700 )
...
* Resolve latest mypy issues
* Linting
2019-11-01 13:27:42 +00:00
Daniel Hahler
c0bf5e3976
tests: minor: use "test_" prefix ( #636 )
...
The test was run previously, but this is clearer.
2019-10-15 15:18:44 +01:00
Tom Christie
8a114b83d3
Version 0.12.10
2019-10-15 13:44:00 +01:00
Aaron Gunderson
b314634481
[docs] update RedirectResponse status code ( #634 )
...
The redirect response changed the status code it returns by default but the docs were not updated to reflect the change. Small fix to keep up to date.
3f70223824
2019-10-15 13:43:33 +01:00
Josha Inglis
006fb2ab7e
don't return "error" in graphql response when no error occurs ( #623 )
...
Fixes #622
Signed-off-by: Josha Inglis <joshainglis@gmail.com>
2019-10-15 13:41:35 +01:00
Mantas Zimnickas
3cd04d9ead
Update docs about html mode for static files ( #624 )
2019-10-15 13:40:56 +01:00