Deferred updating response meta with consul headers (#5355)
This commit is contained in:
parent
2056a5516c
commit
4ec1498a98
|
@ -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