RFR: 8292876: Do not include the deprecated userinfo component of the URI in HTTP/2 headers

Darragh Clarke duke at openjdk.org
Thu Oct 6 11:44:01 UTC 2022


Changed the way the `:authority` pseudo header is set to only include host and, if available, port.
I added a test to cover this change that consists of a HttpClient that makes a request which contains userInfo, the test passes if the request is carried out with the userInfo not being added to the `:authority` header.


### Tests
I ran Tier 1 - Tier 3 tests, as well as paying special attention to the http client tests to make sure they consistently passed

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

Commit messages:
 - Merge branch 'openjdk:master' into JDK-8292876
 - exclude userInfo from authority header

Changes: https://git.openjdk.org/jdk/pull/10592/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10592&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292876
  Stats: 104 lines in 2 files changed: 101 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/10592.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10592/head:pull/10592

PR: https://git.openjdk.org/jdk/pull/10592


More information about the net-dev mailing list