mirror of https://github.com/status-im/consul.git
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 reply.Roots, nil
|
||||
return reply, nil
|
||||
}
|
||||
|
|
|
@ -10,7 +10,9 @@ type IndexedCARoots struct {
|
|||
// Roots is a list of root CA certs to trust.
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue