microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
8.02k stars 1.66k forks source link

fix issue: The web_proxy doesn't work when set proxy with uri #1780

Open ceasor opened 1 year ago

ceasor commented 1 year ago

http_client_winhttp::send_request only handle the case when proxy.is_auto_discovery() return true. image So when we construct a web_proxy with uri, it will only set the proxy mode as userprovided. image So send_request will ignore the proxy setting when we use uri to construct a web_proxy.

My modification tries to fix the problem.

ceasor commented 1 year ago

@microsoft-github-policy-service agree