forked from TrueCloudLab/lego
registration message in case of conflict 409 should not contain contact details
This commit is contained in:
parent
599eb9a739
commit
402756c1c5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue