We treat put/post the same, so allow init to use POST

This commit is contained in:
Jeff Mitchell
2016-02-22 20:22:31 -05:00
parent 9233a507b2
commit 5f9c3e6837

View File

@@ -12,7 +12,7 @@ func handleSysInit(core *vault.Core) http.Handler {
switch r.Method {
case "GET":
handleSysInitGet(core, w, r)
case "PUT":
case "PUT", "POST":
handleSysInitPut(core, w, r)
default:
respondError(w, http.StatusMethodNotAllowed, nil)