forked from encode/uvicorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ProxyHeadersMiddleware (encode#2468)
* Allow ip ranges for FORWARDED_ALLOW_IPS * Fix host for empty x-forwarded-for header * Add multi-host ip-range testcase, run scripts/lint * Re-run black with line-length 88 * Wrap comments to fit in line-length * Another missed line-length violation * Fix __contains__ annotations * Add support for IPv6 * Fix linting * Fix test cases * Update docs, comments * Update index's usage * Fix more linting * Better unix socket support * Expand proxy documentation * More docs and code comments * Refactor common test cases, add cases for UDS * Update settings docs * Remove "better UDS handling" * Remove code leading to coverage failures * Apply suggestions from code review Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * Fixes, and more tests * Update uvicorn/config.py Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com> * Run ruff formatter * Replace cast with type: ignore * remove make_x_headers * nitpicks * remove unneeded return * fix docs --------- Co-authored-by: Patrick Düggelin <dueggelin@textshuttle.ai> Co-authored-by: Nicholas Hairs <info@nicholashairs.com> Co-authored-by: Nicholas Hairs <nicholashairs@gmail.com>
- Loading branch information
1 parent
83079e6
commit e79692d
Showing
6 changed files
with
578 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.