-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Avoid using the proxy headers in the ConnectionKey if no proxy is in use #9368
Conversation
Default proxy headers may be passed to the connector to be included if a proxy is being used. If no proxy is being used, we should not include the proxy auth and proxy headers in the ConnectionKey
I was wondering why the proxy headers were always being considered in the connection key for Home Assistant even when no proxy is in use. Its because default headers apply to proxy as well even when no proxy is in use Line 474 in e3b1011
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #9368 +/- ##
=======================================
Coverage 98.56% 98.56%
=======================================
Files 107 107
Lines 34981 34990 +9
Branches 4149 4146 -3
=======================================
+ Hits 34478 34487 +9
Misses 335 335
Partials 168 168
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
needs a test |
Backport to 3.10: 💚 backport PR created✅ Backport PR branch: Backported as #9378 🤖 @patchback |
Backport to 3.11: 💚 backport PR created✅ Backport PR branch: Backported as #9379 🤖 @patchback |
…he ConnectionKey if no proxy is in use (#9379) Co-authored-by: J. Nick Koston <[email protected]>
(cherry picked from commit 8a583ed)
…g message (#9387) Co-authored-by: J. Nick Koston <[email protected]> Fix missing text in #9368 changelog message
…he ConnectionKey if no proxy is in use (#9378) Co-authored-by: J. Nick Koston <[email protected]>
What do these changes do?
Default proxy headers may be passed to the connector to be included in the event a proxy is being used. If no proxy is being used, we should not include the proxy auth and proxy headers in the
ConnectionKey
since it means we could end up creating a connection when one was already available for reuseAre there changes in behavior for the user?
no
Is it a substantial burden for the maintainers to support this?
no