aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/provider.go b/provider.go
index 8930fcb..5c1cf18 100644
--- a/provider.go
+++ b/provider.go
@@ -167,12 +167,11 @@ func (p *Provider) solve(s Signer, ch Challenge) error {
}
defer ch.Solved()
- r := &Challenge{
- Resource: ResChallenge,
- Type: ch.Type,
- KeyAuthorization: ka,
- }
- resp, err := p.post(ch.URI, s, r)
+ // update challenge
+ ch.Resource = ResChallenge
+ ch.KeyAuthorization = ka
+
+ resp, err := p.post(ch.URI, s, ch)
if err != nil {
return err
}