mirror of
https://github.com/go-acme/lego.git
synced 2025-04-09 17:33:53 +02:00
registration message in case of conflict 409 should not contain contact details
This commit is contained in:
parent
599eb9a739
commit
402756c1c5
@ -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…
x
Reference in New Issue
Block a user