aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-23 22:10:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-23 22:10:09 +0100
commitfde15aa0cca6160cfbc698354321a961932a7f86 (patch)
tree85e7aef6c15c1a00e647677f427cad0de66a7e3d /client.go
parenta7af67e068e9dd035397f818a112a6755d51f54c (diff)
Bikeshading
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
+ }
}
}
}