registration message in case of conflict 409 should not contain contact details

This commit is contained in:
Till Klocke 2016-06-14 09:50:12 +02:00
parent 599eb9a739
commit 402756c1c5

View file

@ -173,7 +173,9 @@ func (c *Client) Register() (*RegistrationResource, error) {
remoteErr, ok := err.(RemoteError)
if ok && remoteErr.StatusCode == 409 {
regURI = hdr.Get("Location")
regMsg.Resource = "reg"
regMsg = registrationMessage{
Resource: "reg",
}
if hdr, err = postJSON(c.jws, regURI, regMsg, &serverReg); err != nil {
return nil, err
}