From 9bd3a27a36c43020b8d56d1e07584cbd37f355fe Mon Sep 17 00:00:00 2001 From: Lexman Date: Thu, 17 Oct 2019 14:10:55 -0700 Subject: [PATCH] updates vendored api/client.go (#7692) --- vendor/github.com/hashicorp/vault/api/client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vendor/github.com/hashicorp/vault/api/client.go b/vendor/github.com/hashicorp/vault/api/client.go index 216e8d22d9..ff27eff657 100644 --- a/vendor/github.com/hashicorp/vault/api/client.go +++ b/vendor/github.com/hashicorp/vault/api/client.go @@ -673,7 +673,6 @@ func (c *Client) NewRequest(method, requestPath string) *Request { token := c.token mfaCreds := c.mfaCreds wrappingLookupFunc := c.wrappingLookupFunc - headers := c.headers policyOverride := c.policyOverride c.modifyLock.RUnlock() @@ -718,10 +717,7 @@ func (c *Client) NewRequest(method, requestPath string) *Request { req.WrapTTL = DefaultWrappingLookupFunc(method, lookupPath) } - if headers != nil { - req.Headers = headers - } - + req.Headers = c.Headers() req.PolicyOverride = policyOverride return req