aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.go b/client.go
index f92d15d..3674db2 100644
--- a/client.go
+++ b/client.go
@@ -1,6 +1,7 @@
package acme
import (
+ "bytes"
"encoding/json"
"io/ioutil"
"net/http"
@@ -24,7 +25,7 @@ func Post(uri string, v interface{}) error {
if err != nil {
return err
}
- _, err := http.Post(uri, "application/jose+json", body)
+ _, err = http.Post(uri, "application/jose+json", bytes.NewReader(body))
if err != nil {
return err
}