Skip to content

Commit 90bd1ac

Browse files
committed
8358617: java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fails with 403 due to system proxies
Backport-of: a377773fa76b46ac98533c61bc1410485390115e
1 parent cb13dcc commit 90bd1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jdk/java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ private HttpURLConnection createConnection() throws Exception {
429429
.port(control.serverSocket.getLocalPort())
430430
.toURL();
431431

432-
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
432+
HttpURLConnection connection = (HttpURLConnection) url.openConnection(Proxy.NO_PROXY);
433433
connection.setDoOutput(true);
434434
connection.setReadTimeout(5000);
435435
connection.setUseCaches(false);

0 commit comments

Comments
 (0)