Allow empty arrays in `HttpRequest.Builder#headers()`.

---------
- [X] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Accept empty arrays in `java.net.http.HttpRequest.Builder#headers`

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

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

Reply via email to