By default, the JDK HttpClient's HttpRequest does not allow Connection, Content-Length, Expect, Host, or Upgrade headers to be set, but this can be overriden with the `jdk.httpclient.allowRestrictedHeaders` system property. See https://bugs.openjdk.org/browse/JDK-8213696 Closes gh-30787