From 402756c1c5c4a76011ba9effc5df33bdcb7eb29e Mon Sep 17 00:00:00 2001 From: Till Klocke Date: Tue, 14 Jun 2016 09:50:12 +0200 Subject: [PATCH] registration message in case of conflict 409 should not contain contact details --- acme/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acme/client.go b/acme/client.go index a2d9c0ed..fe012222 100644 --- a/acme/client.go +++ b/acme/client.go @@ -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 }