aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-27 01:16:28 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-27 01:16:28 +0100
commitc5b9e205026e73ad351e5de6abc32cb5c9dbf574 (patch)
tree5960a245edc6bd9e7d05605f32f176ed90c20217 /client.go
parent553e56875059135832fdf43fd399bf8a6deb3251 (diff)
Fix post
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
}