Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitabe0eca
committed
bug#38368 [HttpClient] Fix using https with proxies (bohanyang)
This PR was squashed before being merged into the 4.4 branch.Discussion----------[HttpClient] Fix using https with proxies| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| License | MIT| Doc PR | -According to my test, when `request_fulluri` is set to true,the host appears in the URL will be the Host header,even if the Host header is set in the context http header.Since HttpClient has its own DNS cache, the host inside the URL is usually an IP address.So this can break many things.```{ "args": {}, "headers": { "Accept": "*/*", "Accept-Encoding": "gzip", "Host": "3.211.1.78", "User-Agent": "Symfony HttpClient/Native", "X-Amzn-Trace-Id": "Root=1-5f75a59e-62c8c81e4490e09c700d6180" }, "origin": "xxx.xxx.xxx.xxx", "url": "https://3.211.1.78/get"}* Hostname was NOT found in DNS cache* Added httpbin.org:0:3.211.1.78 to DNS cache* Establish HTTP proxy tunnel to tcp://10.22.22.21:7777> GEThttps://3.211.1.78/get HTTP/1.1Accept: */*Accept-Encoding: gzipHost: httpbin.orgUser-Agent: Symfony HttpClient/Native< HTTP/1.1 200 OK< Date: Thu, 01 Oct 2020 09:47:10 GMT< Content-Type: application/json< Content-Length: 300< Connection: close< Server: gunicorn/19.9.0< Access-Control-Allow-Origin: *< Access-Control-Allow-Credentials: true<```I've also found thisguzzle/guzzle#791We can also create an option to make it customizable.Commits-------7e0cd4e [HttpClient] Fix using https with proxies1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
0 commit comments
Comments
(0)