Merge pull request #10189 from hashicorp/dnephin/http-api-health-query-meta

http: set consistency header properly for health endpoint
pull/10192/head
Daniel Nephin 4 years ago committed by GitHub
commit 850c6e5b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,4 @@
```release-note:bug
http: fix a bug that caused the `X-Consul-Effective-Consistency` header to be missing on
request for service health
```

@ -227,8 +227,8 @@ func (s *HTTPHandlers) healthServiceNodes(resp http.ResponseWriter, req *http.Re
if args.QueryOptions.UseCache {
setCacheMeta(resp, &md)
}
out.QueryMeta.ConsistencyLevel = args.QueryOptions.ConsistencyLevel()
setMeta(resp, &out.QueryMeta)
out.ConsistencyLevel = args.QueryOptions.ConsistencyLevel()
// FIXME: argument parsing should be done before performing the rpc
// Filter to only passing if specified

Loading…
Cancel
Save