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
The contrib directory contains scripts, images, and other helpful things
which are not part of the core docker distribution. Please note that they
could be out of date, since they do not receive the same attention as the
rest of the repository.