mirror of https://github.com/status-im/consul.git
Deferred updating response meta with consul headers (#5355)
This commit is contained in:
parent
b3c7447014
commit
b2af8862c7
|
@ -33,6 +33,7 @@ func (s *HTTPServer) IntentionList(resp http.ResponseWriter, req *http.Request)
|
|||
}
|
||||
|
||||
var reply structs.IndexedIntentions
|
||||
defer setMeta(resp, &reply.QueryMeta)
|
||||
if err := s.agent.RPC("Intention.List", &args, &reply); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue