mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Make WrapInfo a pointer to match secret/auth in response
This commit is contained in:
@@ -155,7 +155,7 @@ func respondLogical(w http.ResponseWriter, r *http.Request, path string, dataOnl
|
||||
return
|
||||
}
|
||||
|
||||
if resp.WrapInfo.Token != "" {
|
||||
if resp.WrapInfo != nil && resp.WrapInfo.Token != "" {
|
||||
httpResp = logical.HTTPResponse{
|
||||
WrapInfo: &logical.HTTPWrapInfo{
|
||||
Token: resp.WrapInfo.Token,
|
||||
|
||||
Reference in New Issue
Block a user