mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
When using a https proxy, an extra HTTP 200 header will be generated. So we can't rely on detecting the first http header. $curlHeaders with https proxy: "HTTP/1.0 200 Connection established <-- the https proxy's response HTTP/1.1 307 Temporary Redirect ... " See https://stackoverflow.com/a/34537988/889429 Fixes #34131 Signed-off-by: Jacob Wen <jian.w.wen@oracle.com> Upstream-commit: 238d17c456c3ff0b8937b33538f6a4b36f829410 Component: engine