On Tue, 17 Jun 2025 13:28:07 GMT, Daniel Fuchs <dfu...@openjdk.org> wrote:

>> Jaikiran Pai has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - Volkan's suggestion - use test specific context root for the handler
>>  - Daniel's suggestion - use setIfNotSet
>
> src/java.base/share/classes/sun/net/www/protocol/http/HttpURLConnection.java 
> line 624:
> 
>> 622:                 host += ":" + String.valueOf(port);
>> 623:             }
>> 624:             if (requests.findValue("Host") == null) {
> 
> Should we use `setIfNotSet` here like for "Accept" below?

That seems reasonable. I had a look at the implementation in `setIfNotSet()` 
and it matches this current semantic. So I've updated the PR to use 
`setIfNotSet()`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25844#discussion_r2152328489

Reply via email to