diff options
| author | Andrew Lytvynov <awly@tailscale.com> | 2024-10-31 13:12:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 11:12:38 -0700 |
| commit | 3477bfd234523601e2788a51bb365422448278ed (patch) | |
| tree | fc71c7c4f57e7195d6dd58f834628e7855099f52 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | 3f626c0d774bc1b8a93be26a4aa8f2dadeb27ece (diff) | |
| download | tailscale-3477bfd234523601e2788a51bb365422448278ed.tar.xz tailscale-3477bfd234523601e2788a51bb365422448278ed.zip | |
safeweb: add support for "/" and "/foo" handler distinction (#13980)
By counting "/" elements in the pattern we catch many scenarios, but not
the root-level handler. If either of the patterns is "/", compare the
pattern length to pick the right one.
Updates https://github.com/tailscale/corp/issues/8027
Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
