From b3150b03d63312c5d8a57bbe893c34f4ce3c8dfc Mon Sep 17 00:00:00 2001 From: Nick Spain Date: Wed, 17 Mar 2021 00:32:54 +1100 Subject: [PATCH] Plumb through service check body field to Consul API --- command/agent/consul/service_client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/agent/consul/service_client.go b/command/agent/consul/service_client.go index 66c00225c598..05ca9e9879f8 100644 --- a/command/agent/consul/service_client.go +++ b/command/agent/consul/service_client.go @@ -1408,6 +1408,7 @@ func createCheckReg(serviceID, checkID string, check *structs.ServiceCheck, host chkReg.HTTP = checkURL.String() chkReg.Method = check.Method chkReg.Header = check.Header + chkReg.Body = check.Body case structs.ServiceCheckTCP: chkReg.TCP = net.JoinHostPort(host, strconv.Itoa(port))