Deferred updating response meta with consul headers (#5355)

This commit is contained in:
Kainoa Seto 2019-02-19 03:45:36 -08:00 committed by Paul Banks
parent b3c7447014
commit b2af8862c7
1 changed files with 1 additions and 0 deletions

View File

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