OpenJDK / amber / amber
changeset 58416:6b93cc7741ba
8225298: Improve TLS connection support
Reviewed-by: dfuchs, igerasim, michaelm, rhalade, skoivu
author | chegar |
---|---|
date | Fri, 21 Jun 2019 10:51:10 +0100 |
parents | 2ede50a0f67d |
children | 36c5e85b8597 |
files | src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Wed Jun 19 15:24:42 2019 -0700 +++ b/src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Fri Jun 21 10:51:10 2019 +0100 @@ -2171,6 +2171,10 @@ } while (retryTunnel < maxRedirects); if (retryTunnel >= maxRedirects || (respCode != HTTP_OK)) { + if (respCode != HTTP_PROXY_AUTH) { + // remove all but authenticate responses + responses.reset(); + } throw new IOException("Unable to tunnel through proxy."+ " Proxy returns \"" + statusLine + "\"");