Skip to content

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.

Tom Granot added 2 commits November 7, 2020 22:24
…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