8327989: java/net/httpclient/ManyRequest.java should not use "localhost" in URIs
Reviewed-by: jpai, djelinski, gli
This commit is contained in:
parent
49d8008947
commit
da4dd7c008
@ -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
|
||||
@ -187,7 +187,7 @@ public class ManyRequests {
|
||||
|
||||
URI baseURI = URIBuilder.newBuilder()
|
||||
.scheme("https")
|
||||
.host(InetAddress.getLoopbackAddress().getHostName())
|
||||
.loopback()
|
||||
.port(port)
|
||||
.path("/foo/x").build();
|
||||
server.createContext("/foo", new TestEchoHandler());
|
||||
|
Loading…
Reference in New Issue
Block a user