updates vendored api/client.go (#7692)

This commit is contained in:
Lexman 2019-10-17 14:10:55 -07:00 committed by GitHub
parent 99f7184d33
commit 9bd3a27a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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