mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-22 03:01:10 +01:00
updates vendored api/client.go (#7692)
This commit is contained in:
parent
99f7184d33
commit
9bd3a27a36
6
vendor/github.com/hashicorp/vault/api/client.go
generated
vendored
6
vendor/github.com/hashicorp/vault/api/client.go
generated
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user