Commit 5b32e16
Fix reusing ASIO http_client connecting to HTTPS server via proxy (microsoft#539)
Calling request() twice on the same client configured to connect to a
server via HTTPS didn't work under Unix because we issues CONNECT for
every request, meaning that, for the second one, we sent CONNECT via an
already established connection to the end server itself which,
unsurprisingly, didn't work at all.
Fix this by only setting up SSL tunnelling for a new connection but not
for the already used one.1 parent 0f45af1 commit 5b32e16
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
| 908 | + | |
| 909 | + | |
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
| |||
0 commit comments