1
0
Fork 0
Philip O'Toole 3 years ago
parent 6751b5fc4a
commit 4f92d91a63

@ -94,7 +94,7 @@ func join(srcIP, joinAddr, id, addr string, voter bool, tlsConfig *tls.Config, l
}
// Attempt to join.
resp, err := client.Post(fullAddr, "application-type/json", bytes.NewReader(b))
resp, err := client.Post(fullAddr, "application/json", bytes.NewReader(b))
if err != nil {
return "", err
}

@ -58,7 +58,7 @@ func (c *Client) Register(id, addr string) (*Response, error) {
}
c.logger.Printf("discovery client attempting registration of %s at %s", addr, url)
resp, err := client.Post(url, "application-type/json", bytes.NewReader(b))
resp, err := client.Post(url, "application/json", bytes.NewReader(b))
if err != nil {
return nil, err
}

@ -433,7 +433,7 @@ func Remove(n *Node, addr string) error {
}
// Attempt to remove node from leader.
resp, err := http.Post("http://"+n.APIAddr+"/remove", "application-type/json", bytes.NewReader(b))
resp, err := http.Post("http://"+n.APIAddr+"/remove", "application/json", bytes.NewReader(b))
if err != nil {
return err
}
@ -451,7 +451,7 @@ func DoJoinRequest(nodeAddr, raftID, raftAddr string, voter bool) (*http.Respons
return nil, err
}
resp, err := http.Post("http://"+nodeAddr+"/join", "application-type/json", bytes.NewReader(b))
resp, err := http.Post("http://"+nodeAddr+"/join", "application/json", bytes.NewReader(b))
if err != nil {
return nil, err
}

Loading…
Cancel
Save