mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8327989: java/net/httpclient/ManyRequest.java should not use "localhost" in URIs
Reviewed-by: jpai, djelinski, gli
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user