mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
agent/structs: json omit QueryMeta
This commit is contained in:
parent
e7536e5485
commit
6d294b6bb4
@ -24,5 +24,5 @@ func (s *HTTPServer) ConnectCARoots(resp http.ResponseWriter, req *http.Request)
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return reply.Roots, nil
|
return reply, nil
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,9 @@ type IndexedCARoots struct {
|
|||||||
// Roots is a list of root CA certs to trust.
|
// Roots is a list of root CA certs to trust.
|
||||||
Roots []*CARoot
|
Roots []*CARoot
|
||||||
|
|
||||||
QueryMeta
|
// QueryMeta contains the meta sent via a header. We ignore for JSON
|
||||||
|
// so this whole structure can be returned.
|
||||||
|
QueryMeta `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CARoot represents a root CA certificate that is trusted.
|
// CARoot represents a root CA certificate that is trusted.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user