utils: accept '?' as path terminator in uh_path_match()
authorJo-Philipp Wich <jo@mein.io>
Fri, 12 Aug 2022 18:54:03 +0000 (20:54 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 12 Aug 2022 18:54:03 +0000 (20:54 +0200)
commit188dea23edf8b1646c662fa6ab8119f156da49a5
treef7c655985718e1f7d03ada7023226fdd602cee76
parentc5eac5d27fb3967d796fe3c75f4cc1bdcd18ed01
utils: accept '?' as path terminator in uh_path_match()

When matching prefixes against the request URL, we should accept '?' as
valid terminator, similar to '/' and '\0' since logically the query string
is not part of the requested path.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
utils.c