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:
parent
4e3a9a3757
commit
6c490bdd50
|
@ -460,8 +460,11 @@ WHERE p.id = ?1`
|
|||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
fmt.Fprint(w, data)
|
||||
return
|
||||
case "":
|
||||
default:
|
||||
s.NotFound(w, r)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue