Skip to content
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

Propagate original request user-agent in proxy CONNECT requests #1742

Merged

Conversation

TomGranot
Copy link
Contributor

@TomGranot TomGranot commented Nov 7, 2020

Following #1730, it appears that when using a proxy server and a custom user-agent header, the user-agent of the CONNECT request to the proxy server is not correctly set to be the custom one, but instead the default one.

This makes sure the user-agent header is propagated down to the CONNECT request as well, and changes the BasicHTTPToHTTPSTest to account for this as well (since they're logically similar - they both test for the existence of specific headers in the flow).

BTW: Propagate? Percolate? Bubble down? Simmer through? Feel free to change the phrasing.

…hen a proxy is in the way, ensuring all outgoing requests bear the correct user agent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CONNECT request is sent with default AHC user-agent, not with the on from RequestBuilder
1 participant