Skip to content

Commit

Permalink
Plumb through service check body field to Consul API
Browse files Browse the repository at this point in the history
  • Loading branch information
nick96 committed Mar 16, 2021
1 parent 5005fe5 commit b3150b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions command/agent/consul/service_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b3150b0

Please sign in to comment.