From 336550cb7c7a9ff06c8c2ec0f78b5c9ef2ddf4e2 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 7 Jan 2016 11:35:09 -0500 Subject: [PATCH] Have 'sys/renew' return the value provided in Secret. Fixes a regression introduced in 0.3. --- http/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/handler.go b/http/handler.go index df1b367bd1..64dbf5ffe7 100644 --- a/http/handler.go +++ b/http/handler.go @@ -29,7 +29,7 @@ func Handler(core *vault.Core) http.Handler { mux.Handle("/v1/sys/remount", proxySysRequest(core)) mux.Handle("/v1/sys/policy", handleSysListPolicies(core)) mux.Handle("/v1/sys/policy/", handleSysPolicy(core)) - mux.Handle("/v1/sys/renew/", proxySysRequest(core)) + mux.Handle("/v1/sys/renew/", handleLogical(core, false)) mux.Handle("/v1/sys/revoke/", proxySysRequest(core)) mux.Handle("/v1/sys/revoke-prefix/", proxySysRequest(core)) mux.Handle("/v1/sys/auth", proxySysRequest(core))