fix: use mux.Handle(/inspect/) to match sub-paths — Zoraxy sends /inspect/some/page not /inspect
This commit is contained in:
parent
62d532e2ce
commit
d0f8b76154
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
|
@ -57,7 +57,8 @@ func main() {
|
|||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
// Static capture handler — all proxied traffic hits this.
|
||||
// Static capture handler — must match sub-paths (Zoraxy sends /inspect/some/page).
|
||||
mux.Handle("/inspect/", http.HandlerFunc(handleInspect))
|
||||
mux.HandleFunc("/inspect", handleInspect)
|
||||
|
||||
// UI + config API.
|
||||
|
|
|
|||
Loading…
Reference in a new issue