From 33afc05aaa09445972b1f47f7488797c5fbd4d71 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 7 Apr 2015 14:00:09 -0700 Subject: [PATCH] http: make POST to WriteOperation --- http/logical.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http/logical.go b/http/logical.go index 0888953247..a925110d4f 100644 --- a/http/logical.go +++ b/http/logical.go @@ -29,6 +29,8 @@ func handleLogical(core *vault.Core) http.Handler { op = logical.DeleteOperation case "GET": op = logical.ReadOperation + case "POST": + fallthrough case "PUT": op = logical.WriteOperation default: