From 5f9c3e68374ae11f4c8023c63c2bc531aa68c623 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Mon, 22 Feb 2016 20:22:31 -0500 Subject: [PATCH] We treat put/post the same, so allow init to use POST --- http/sys_init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/sys_init.go b/http/sys_init.go index 049dd38c6f..3bacc7c5e9 100644 --- a/http/sys_init.go +++ b/http/sys_init.go @@ -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)