From 13be0f746259664cbaff1b4fef9d65dd278391a2 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 27 Dec 2015 00:37:47 +0100 Subject: Hide other fields --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client.go') diff --git a/client.go b/client.go index 45dca55..d0d1bcf 100644 --- a/client.go +++ b/client.go @@ -173,7 +173,7 @@ func parseHeader(r *http.Response) nextStep { func (c *Client) Register(a *Account) error { r := &Registration{ Resource: ResNewReg, - Contact: a.Contact, + Contact: a.contact, } resp, err := c.post(c.NewReg, a, r) if err != nil && err.(Problem).Err != ErrMalformed { @@ -194,7 +194,7 @@ func (c *Client) Register(a *Account) error { if tos := ns.Link["terms-of-service"]; tos != "" { r = &Registration{ Resource: ResRegister, - Contact: a.Contact, + Contact: a.contact, Agreement: tos, } _, err = c.post(ns.Location.String(), a, r) -- cgit v1.2.3