mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
adjust prefix
This commit is contained in:
parent
b432eb0169
commit
b2c7784d1e
1 changed files with 2 additions and 2 deletions
|
|
@ -126,8 +126,8 @@ func Handler(props *vault.HandlerProperties) http.Handler {
|
|||
} else {
|
||||
mux.Handle("/ui/", handleUIHeaders(core, handleUIStub()))
|
||||
}
|
||||
mux.Handle("/", handleUIRedirect())
|
||||
mux.Handle("/ui", handleUIRedirect())
|
||||
mux.Handle("/", handleUIRedirect())
|
||||
}
|
||||
|
||||
additionalRoutes(mux, core)
|
||||
|
|
@ -182,7 +182,7 @@ func wrapGenericHandler(core *vault.Core, h http.Handler, maxRequestSize int64,
|
|||
}
|
||||
r = newR
|
||||
|
||||
case strings.HasPrefix(r.URL.Path, "/ui/"), r.URL.Path == "/":
|
||||
case strings.HasPrefix(r.URL.Path, "/ui"), r.URL.Path == "/":
|
||||
default:
|
||||
respondError(w, http.StatusNotFound, nil)
|
||||
cancelFunc()
|
||||
|
|
|
|||
Loading…
Reference in a new issue