-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Forwarded, X-Forwarded-Scheme and X-Forwarded-Host for better scheme and host resolution #1881
Merged
+326
−42
Merged
Changes from 8 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b1043b4
#1134 Support X-Forwarded-* and Forwarded implicitly
85fcdfc
#1134 tests
be95cb4
added myself to contributors
9554ce0
added line to changes.rst
3799f85
Merge branch 'master' into master
asvetlov 76b1624
Update CHANGES.rst
evertlammerts 1f79171
Update CHANGES.rst
evertlammerts c2848ed
deprecating secure_proxy_ssl_header
6d37b83
Merge https://github.com/aio-libs/aiohttp
73d4121
more extensive Forwarded parsing
0cb4b22
flake
eee65a4
make isort with new parameters
asvetlov e5c7bfe
Fix #1839: python 3.7 regression for regexp escaping (#1908)
asvetlov 2b33c7d
small changes
15462c2
unpacking tuple implicit
b672b16
#1134 Support X-Forwarded-* and Forwarded implicitly
105c9ed
#1134 tests
145f31f
added myself to contributors
b2a0cc5
added line to changes.rst
09cd914
deprecating secure_proxy_ssl_header
df470cd
more extensive Forwarded parsing
5560bab
flake
ef0c597
small changes
cd643a7
unpacking tuple implicit
d1ba86b
handling multiple field-values, fixed quoted-pair bug (now using vcha…
8ede7d2
merge conflict
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect the parser should be more complicated.
It means the
forwarded-pair
elements could be in random order:by=a; host=b.com
andhost=b.com, by=a
are both valid combinations.Also value could be optionally quoted, aiohttp shoud unquote it automatically.
pair-name is case-insensitive: all 'Host', 'host', and 'HOst` are valid names:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note: the lase example contains two
for
pairs, it's not supported by your regexp now.