Merge branch 'master' of github.com:hashicorp/vault
This commit is contained in:
commit
c50dfb0356
|
@ -120,7 +120,7 @@ func handleSysGenerateRootUpdate(core *vault.Core) http.Handler {
|
|||
if req.Key == "" {
|
||||
respondError(
|
||||
w, http.StatusBadRequest,
|
||||
errors.New("'key' must specified in request body as JSON"))
|
||||
errors.New("'key' must be specified in request body as JSON"))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -168,7 +168,7 @@ func handleSysRekeyUpdate(core *vault.Core, recovery bool) http.Handler {
|
|||
if req.Key == "" {
|
||||
respondError(
|
||||
w, http.StatusBadRequest,
|
||||
errors.New("'key' must specified in request body as JSON"))
|
||||
errors.New("'key' must be specified in request body as JSON"))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ func handleSysUnseal(core *vault.Core) http.Handler {
|
|||
if !req.Reset && req.Key == "" {
|
||||
respondError(
|
||||
w, http.StatusBadRequest,
|
||||
errors.New("'key' must specified in request body as JSON, or 'reset' set to true"))
|
||||
errors.New("'key' must be specified in request body as JSON, or 'reset' set to true"))
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue