aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/provider.go b/provider.go
index bba9efc..8a3f052 100644
--- a/provider.go
+++ b/provider.go
@@ -61,7 +61,7 @@ func DialProvider(directory string) (*Provider, error) {
Transport: p,
Timeout: time.Duration(5 * time.Second),
}
- resp, err := p.get(directory)
+ resp, err := p.Get(directory)
if err != nil {
return nil, err
}
@@ -76,10 +76,6 @@ func (p *Provider) post(uri string, s Signer, v interface{}) (*http.Response, er
return p.Post(uri, "application/jose+json", signed)
}
-func (p *Provider) get(uri string) (*http.Response, error) {
- return p.Get(uri)
-}
-
type nextStep struct {
Link map[string]string
Location string
@@ -219,7 +215,7 @@ func (p *Provider) Authz(s Signer, d *Desire) error {
func (p *Provider) queryStatus(uri string) (bool, error) {
log.Println("query", uri)
r := &Challenge{}
- resp, err := p.get(uri)
+ resp, err := p.Get(uri)
if err != nil {
return false, err
}
@@ -256,7 +252,7 @@ func (p *Provider) Bundle(s Signer, d *Desire) error {
ns := parseHeader(resp)
// second step: cet CA
- resp, err = p.get(ns.Link["up"])
+ resp, err = p.Get(ns.Link["up"])
if err != nil {
return err
}