mirror of
https://github.com/tailscale/tailscale.git
synced 2026-07-25 14:56:25 -04:00
This commit updates the path matching logic in getServeHandler for malformed
request targets like "*" (e.g. "GET *") and "" (e.g. "CONNECT" authority-form).
Those paths never reduce to "/" as absolute path would. An absolute path check
was added and an additional check on no further reduce was added in the loop.
Fixes tailscale/corp#44814
(cherry picked from commit b803ba048c)
Signed-off-by: kevinliang10 <kevinliang@tailscale.com>
Signed-off-by: Patrick O'Doherty <patrick@tailscale.com>
Co-authored-by: KevinLiang10 <37811973+KevinLiang10@users.noreply.github.com>