On Wed, 4 Mar 2026 10:03:38 GMT, Volkan Yazici <[email protected]> wrote:

> [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

This pull request has now been integrated.

Changeset: 0668dab5
Author:    Volkan Yazici <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/0668dab54568a08d49c8c10a7efc4d06ca191083
Stats:     193 lines in 3 files changed: 126 ins; 32 del; 35 mod

8379114: HttpServer path prefix matching incorrectly matches paths that are not 
slash-prefixed

Reviewed-by: dfuchs

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

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

Reply via email to