cmd/web: fix double HTML render when passing a trailing slash

Closes #8

Signed-off-by: Xe Iaso <xe@tailscale.com>
This commit is contained in:
Xe Iaso 2023-02-23 16:45:43 +00:00
parent 4e3a9a3757
commit 6c490bdd50

View file

@ -460,8 +460,11 @@ WHERE p.id = ?1`
w.WriteHeader(http.StatusOK)
fmt.Fprint(w, data)
return
case "":
default:
s.NotFound(w, r)
return
}
}