agent/structs: json omit QueryMeta

This commit is contained in:
Mitchell Hashimoto 2018-03-18 22:07:52 -07:00
parent e7536e5485
commit 6d294b6bb4
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 4 additions and 2 deletions

View File

@ -24,5 +24,5 @@ func (s *HTTPServer) ConnectCARoots(resp http.ResponseWriter, req *http.Request)
return nil, err
}
return reply.Roots, nil
return reply, nil
}

View File

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