Skip to content

Commit

Permalink
8327989: java/net/httpclient/ManyRequest.java should not use "localho…
Browse files Browse the repository at this point in the history
…st" in URIs

Backport-of: da4dd7c008da4be54ee5f58d1ac19f440fd2a74e
  • Loading branch information
Amos Shi committed Apr 28, 2024
1 parent e51f176 commit 71630eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jdk/java/net/httpclient/ManyRequests.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -176,7 +176,7 @@ static void test(HttpsServer server, HttpClient client) throws Exception {

URI baseURI = URIBuilder.newBuilder()
.scheme("https")
.host(InetAddress.getLoopbackAddress().getHostName())
.loopback()
.port(port)
.path("/foo/x").build();
server.createContext("/foo", new TestEchoHandler());
Expand Down

1 comment on commit 71630eb

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.