aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/client.go b/client.go
index c1e0e91..401fcfb 100644
--- a/client.go
+++ b/client.go
@@ -228,7 +228,10 @@ func (c *Client) Authorize(a *Account, domain []string) error {
_, err = c.post(ch.URI, a, ans)
switch ch.Type {
case ChallengeHTTP:
- httpChallenge{Addr: ":8080", Challenge: *ans}.Solve()
+ c := &httpChallenge{Addr: ":8080", Challenge: *ans}
+ if err := Solve(c); err != nil {
+ return err
+ }
}
}
}