RFR [12]: 8203850: java.net.http HTTP client should allow specifying Origin and Referer headers

Chris Hegarty chris.hegarty at oracle.com
Thu Oct 11 18:28:03 UTC 2018



> On 11 Oct 2018, at 18:05, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
> 
> Hi Michael,
> 
> On 11/10/2018 17:36, Michael McMahon wrote:
>> Hi Daniel,
>> I was allowing for the possibility that the implementation might silently
>> discard the header. In that case, the server would send the 500 response
>> after detecting the "Via" header.
> 
> I would agree if that was a JCK test, but here we are testing
> the OpenJDK implementation - aren't we?


This should probably be replaced with the unconditional:
    
    Assert.fail(“Unexpected response: ” + response);

-Chris.


More information about the net-dev mailing list