[JDK-8272758] (#29264) incorrectly added the `if (contextPath == '/') { return 
true; }` fast path to the `HttpServer` context matcher. As a result, `GET foo` 
started matching context `/`, where it should not. Fix this.

[JDK-8272758]: https://bugs.openjdk.org/browse/JDK-8272758

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

Commit messages:
 - Fix incorrect fast path in path prefix matching

Changes: https://git.openjdk.org/jdk/pull/30044/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30044&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8379114
  Stats: 193 lines in 3 files changed: 126 ins; 32 del; 35 mod
  Patch: https://git.openjdk.org/jdk/pull/30044.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30044/head:pull/30044

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

Reply via email to