aboutsummaryrefslogtreecommitdiff
path: root/register.go
diff options
context:
space:
mode:
Diffstat (limited to 'register.go')
-rw-r--r--register.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/register.go b/register.go
index bd9e0da..e0f79d8 100644
--- a/register.go
+++ b/register.go
@@ -28,7 +28,7 @@ func (p *Provider) Register(c Contacts, agree func(string) bool) error {
Resource: ResNewReg,
Contact: c,
}
- resp, err := p.post(p.NewReg, req)
+ resp, err := p.postJson(p.NewReg, req)
if err != nil {
return err
}
@@ -51,7 +51,7 @@ func (p *Provider) Register(c Contacts, agree func(string) bool) error {
Contact: c,
Agreement: ns.Link["terms-of-service"],
}
- resp, err = p.post(ns.Location, req)
+ resp, err = p.postJson(ns.Location, req)
if err != nil {
return err
}