aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-27 00:37:47 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-27 00:37:47 +0100
commit13be0f746259664cbaff1b4fef9d65dd278391a2 (patch)
tree11692a3678d8290fee4e77b1e9e7ec063ffcbfcd /client.go
parent36fbcdd2bdef6176538367f71fa25609b18a705c (diff)
Hide other fields
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 2 insertions, 2 deletions
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)