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

Reviewed-by: jpai, djelinski, gli
  • Loading branch information
dfuch committed Mar 13, 2024
1 parent 49d8008 commit da4dd7c
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, 2023, 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 @@ -187,7 +187,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 da4dd7c

@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.