mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
We treat put/post the same, so allow init to use POST
This commit is contained in:
@@ -12,7 +12,7 @@ func handleSysInit(core *vault.Core) http.Handler {
|
|||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "GET":
|
case "GET":
|
||||||
handleSysInitGet(core, w, r)
|
handleSysInitGet(core, w, r)
|
||||||
case "PUT":
|
case "PUT", "POST":
|
||||||
handleSysInitPut(core, w, r)
|
handleSysInitPut(core, w, r)
|
||||||
default:
|
default:
|
||||||
respondError(w, http.StatusMethodNotAllowed, nil)
|
respondError(w, http.StatusMethodNotAllowed, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user