From d3bd76f5c8a0509869e749e13d6a6edafdd3af66 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 3 Jun 2016 21:21:10 +0200 Subject: Rename post --- register.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'register.go') 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 } -- cgit v1.2.3