This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
allow specifying https:// proxy #10411
Merged
Merged
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
8529878
allow specifying https:// proxy
Bubu c9cb0a8
add back note about supported schemes
Bubu f889cdf
isort
Bubu 9326de3
Add test for connections to https proxy
richvdh ef657bf
fix comment wrapping
Bubu 76698d8
tls_options_factory isn't Optional
Bubu bca0c04
make proxy_parse tests a separate class
Bubu 728bbfb
Merge branch 'https_proxy' of github.com:Bubu/synapse into rework_pro…
Bubu 9275a29
add comment about supported proxy protocols to proxyagent
Bubu 59e6f5a
fix scheme, username:password order confusion in comment
Bubu 35378a0
Update synapse/http/proxyagent.py
richvdh d455b74
Merge remote-tracking branch 'synapse/develop' into https_proxy_new
dklimpel 486d9ae
fix merge
dklimpel faa93d3
add type hints to test
dklimpel 7aba100
add type hints
dklimpel 8ce213d
newsfile
dklimpel 62a98e7
`parse_proxy` use urllib return credentials
dklimpel df66024
remove `parse_username_password`
dklimpel 8fdfc41
update `ProxyParserTests`
dklimpel 1aaedaa
lint
dklimpel 2ace68b
fix imports in tests
dklimpel 82b18d9
2nd fix imports in tests
dklimpel 3524c80
fix and add new tests
dklimpel 292bdf0
small typo in tests
dklimpel 9c205e1
update f-strings
dklimpel af0eb94
Apply suggestions from code review
dklimpel 047e3a2
update after review
dklimpel 584904f
update doc string
dklimpel 4176286
lint
dklimpel 6da1b9a
Fix up https proxy tests
richvdh b2a4928
change from `RuntimeError` to `ValueError`
dklimpel 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add support for https connections to a proxy server. Contributed by @Bubu and @dklimpel. |
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.
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.
why RuntimeError rather than ValueError?
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.
Same code in sygnal.
https://github.com/matrix-org/sygnal/blob/8cbe3d6b21e60987beb83ca21db5675fbdcc3e14/sygnal/helper/proxy/__init__.py#L31-L64
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.
ok, but I see that as a bug in sygnal rather than something we ought to replicate here.